[EMAIL PROTECTED] (Kevin Hammond) writes:
> >It sounds like if we allow empty declarations, then we have to fix the
> >layout rule. Is that the case?
>
> I think the layout rule is still fine (there are already empty declarations
> in some cases, e.g. class).
Empty declarations in classes are fine, because they always occur at
the top level. If empty declarations were allowed in 'let' for
example, then the layout problem shows up (because semicolons inserted
by an outer scope wouldn't close the inner scope). I think this is
far too subtle, and needs to be fixed.
> I'd be wary of adding empty expressions (e.g.
> case with no alternatives, do with no clauses), though, since you need a value
> for them!
Sure - empty 'case' expressions and similar are a separate issue. And
not entirely useful. Empty 'let' expressions and 'where' clauses,
however, are harmless.
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key