From: Robert Klemme Date: 2005-05-12T22:35:29+09:00 Subject: Re: {} vs begin/end [was Re: object loops and what they return] Brian Schr�der wrote: > On 12/05/05, Gavin Kistner wrote: >> On May 12, 2005, at 1:48 AM, Brian Schr�der wrote: >>> On 12/05/05, Phrogz wrote: >>>> I tend to use { >>>> and } for blocks instead of begin/end in my own code because IMHO >>>> it visually groups it better, but I used begin/end here since that >>>> seems to be the emerging multi-line choice of the community.) >>> >>> I just wanted to throw in that I'm in the camp of people who use >>> begin end when the side effect is important and braces when the >>> return value is important. >> >> I had no idea that there was such a camp. I like that. >> >> Can I come hang out in your camp? I'll bring my own sleeping bag and >> marshmallows. >> > > In this case you're welcome. I know I read this in two independent > blog entries, but I can't find them now. So I imagine i do not really > own this camping site ;-) If you got thrown out you can come over to my camp ("it's on one line ? use braces : use 'do ... end'") - we have plenty of space over here. As you can see I also frequently visit the ternary operator camp... ;-) Kind regards robert