On Mon, 2008-07-21 at 05:33 +0200, Albert Graef wrote:
> Eddie Rucker wrote:
> > What do you think about the following addition to syntax? If there is exactly one statement
> > inside of a 'with' or when 'block,' we could leave off the 'end.'
>
> Yeah, that would be convenient, but unfortunately it's not possible,
> since the grammar would become ambiguous (or non-LALR at least).
>
> Albert
>
Ok, I forgot Pascal used 'begin end' pairs to define a block.
Personally, I prefer 'when end' to 'when begin end.' However, 'when {}'
isn't bad but I figure you'll use '{}' for streams.
e.r.
|