Kevin Olemoh wrote:
> Hello I have been using ruby off and on for a few months and I have been
> having a great time with the language but a few things bother me about
> the syntax of the language itself.  The two glaring issues are:
>
> 1. The syntax errors generated by the following code:
>
> a.each
> do
> #stuff
> end
>

In Ruby an expression continues on the next line if syntax
unambiguously shows that the expression is incomplete.

In this case "a.each" is a complete expression by itself (a method call
with no arguments and no block), and so the "do" on the following line
occurs without anything to take the block.

Vidar