From: Robert Klemme Date: 2003-07-30T11:30:09+09:00 Subject: Re: Ruby could be wildly more popular if it had ... "Kent Dahl" schrieb im Newsbeitrag news:bg6d1v$nsq$1@tyfon.itea.ntnu.no... > This presents quite the dilemma on what to use for blocks when you are > introducing Ruby to someone. > > On one hand, you should use do..end, which fits nicely in with > begin..end, class..end, def..end etc. so that it seems simple, > orthogonal, pedagogical etc. > > On the other hand, you really need to write every possible block on the > {...} form to get high enough bracket-ratio to get into their geeky > little heads. My solution is to use {} for one line blocks and do..end for more complicated things. robert