From: "David A. Black" Date: 2005-02-14T09:17:24+09:00 Subject: Re: mandatory braces Hi -- On Mon, 14 Feb 2005, craig duncan wrote: > I agree (with others) that this exact idea isn't so good. Why should you > have to use parens when a method has no args? But the one flaw that has > bothered me about ruby is that _too much_ flexibility in parsing is allowed. > I'd like it if parens were required around a method call's arguments. The > savings in leaving them off i find less than desirable as i (personally) > find it _harder_ to parse things out, visually. The one I stumble on visually is: def a b, c, d = e As for method calls -- I tend to prefer them with parens, but actually seeing how it plays out in Rails has softened me a little. You get things like: class Teacher has_many :sections has_one :gradebook etc., where the non-parens allow for a rather nice-looking pseudo-config-file look. David -- David A. Black dblack@wobblini.net