Expression switch - an alternate proposal

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Wed Apr 11 04:27:23 UTC 2018


Hi,

On Mon, Apr 9, 2018 at 7:33 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

>
> I think i agree with you about the fact that the expression switch does
>> need to support fallthrough,
>> more on that in a folowing email.
>>
>
> and will be sad if we make them write
>
>     case MONDAY: break 1;
>     case TUESDAY: break 2;
>
My suggestion is:
    case MONDAY := 1;
    case TUESDAY := 2;

-- 

Best Regards,
Ali Ebrahimi


More information about the amber-dev mailing list