Tuesday, June 1, 2010

ruby and curly braces around statements

"In memory" of perl, ruby allows curly braces in "almost every place", where perl allows it. But it does not allow it for function resp. method definitions, and not for if/elsif/else. There it enforces the keyword "end". Correct me, if I'm wrong.

No comments: