"bearophile" <[email protected]> wrote in message news:[email protected]... > Jacob Carlborg: >> Making parenthesis optional in function calls and semicolons make quite >> a nice delegate literal syntax: >> >> loop { >> // do something >> } > > It looks also like the Ruby blocks. But D seems designed to work with a > simpler back-end in mind, unable to "digest" delegates. >
I've done a little bit of Ruby (writing/maintaining some rakefiles). This sort of thing seems like a neat idea, but in practice I found it to be error-prone (ambiguities) and made it a lot harder to visually parse code. I constantly found myself having to "imagine" the omitted syntax, which just made the whole feature a wash. ------------------------------- Not sent from an iPhone.
