From: Christian Neukirchen Date: 2005-05-13T03:03:54+09:00 Subject: Re: {} vs begin/end [was Re: object loops and what they return] Jim Freeze writes: > * Jim Weirich [2005-05-12 23:32:52 +0900]: > >> I use to pitch my tent in the one line => braces camp. But every time my >> one liner tent grew to more than one line, they made me repitch my tent >> using begin/end tent stakes. That's when I moved to the return value => >> brace camp. >> > > I came from the C camp, where everything looked like {}. > Since my editor supported matching these curly things, > I (usually) pitch camp at { || ... }. Welcome, fellow. :-) Have some marshallows. My rule of thumb is like this: I use {} constantly, except for rakefile rules and other similar domain specific/configuration languages. Usually, this results in a nice mix of `}' and `end' closing their beginnings, and makes finding the matching beginning easier. YMMV. >> BTW, I do regularly hike up to the ternary operator camp as well, so I'll >> see you there. > > I too like this camp since it is a short hike, but since I > don't like strenuous activitiy, I never nest them. Welcome, fellow... :-) Then, I'm often in the camp of inline-case users... how about you? > Jim Freeze -- Christian Neukirchen http://chneukirchen.org