On 4/28/06, carlo <cdicelico / earthlink.net> wrote:> i dislike the use of 'end' (just about the only think i *don't* like in> ruby). so, since everybody is saying that this is just a matter of> taste, why won't this work:
This is not a matter of taste, in the main.
The use of {} signifies the creation of a hash or a block, depending on context.
What is -- mostly -- a matter of taste is the use of {} vs do/end inblocks. There is a binding precedence issue.
  task foo { ... } # the block binds to foo, not to task.  task foo do ... end # the block binds to task, not to foo.
class must be matched with end.def must be matched with end.case must be matched with end.begin must be matched with end.do must be matched with end.
You're just going to have to get used to end.
-austin--Austin Ziegler * halostatue / gmail.com               * Alternate: austin / halostatue.ca