From: Kevin Smith Date: 2001-01-07T03:16:43+09:00 Subject: [ruby-talk:8752] Re: Braces and begin/end NAKAMURA, Hiroshi wrote: >> From: Dave Thomas >> The style I've come to is to use do/end for multi-line blocks, and >> braces for single lines (where do/end seems to my eyes to be too much >> noise). That's not bad. I rarely do single-line stuff, but when I do the braces would probably be clearer. >It's my turn. >value = {} if expecting its value, do/end if not. > >Ex1. > > t = Thread.new { > ...working... > } I kind of like this as well. Even though I don't chain, there is benefit in making it clear whether something is coming back or not. I'll have to ponder this, and maybe experiment with it. Thanks to both of you for sharing these ideas! Kevin