Re: Optional "then" and "do"

new topic     » goto parent     » topic index » view thread      » older message » newer message

yuku wrote:
> 
> I made changes to the parser.e so that the keyword "then" and "do"
> is optional (if the coder wants that it is still accepted).
> 
> Reasons:
> 
> - Less typing
> 
> - Prevent mistakes of writing if <expr> do  and  for <expr> then
>   which I did a lot of times (Kat too)
> 
> If no real objection is made, I will commit it.

If I remember correctly Rob Craig had mentioned this some time ago. I wasn't
able to find the reference. I think the parser needs these words to avoid
ambiguity in some cases. I think this needs to be further investigated before
making any changes.

Larry Miller

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu