From: Domenico De Felice Date: 2005-11-05T17:37:11+09:00 Subject: Re: Some comments on new 1.9 features Austin Ziegler wrote: > On 11/4/05, Domenico De Felice wrote: [CUT] > > class Foo: > > def foo: "foo" > > > > It sounds more expressive than do .. ;; > > .. > > It sounds too much like Python. Python's syntax is one of the reasons > I don't use Python. I didn't mean a indentation-block as in Python, but just to use a colon with one-statement blocks. Multi-statements blocks would look the same. class Foo def foo a = "foo" a end def bar: "bar" end The indentation of the statement following the colon would be ignored. It looks prettier than the double semicolon to me. With multilines blocks I can't see any reason to change the do .. end syntax. -- Domenico