From: "David A. Black" Date: 2010-09-02T19:38:32+09:00 Subject: Re: some syntax suggestions Hi -- On Thu, 2 Sep 2010, Brian Xue wrote: > > Hello, > > Is there any plan to remove the enforcing, that declare class names > with capital letter as frist, and that variable names start with lower > case letters? these enforing may conflicts with a person or company's > naming conventions. It's not class names specifically that start with capital letters, but constants in general. Constants are scoped and resolved very differently from local variables, and the parser has to have some way to tell which is which. (And no, Ruby is not going to introduce variable and constant declarations :-) > And by the way, there will be so many 'end' keywords if nested > conditions or declarations are used, it's hard to differentiate which > 'end' belongs to which keyword, like 'class', 'def', etc. An > alternative will be using 'endclass', 'enddef' instead, this may be > more readable. Some people write "end#class" and such. I don't -- I find that it looks kind of cluttered, to my eye, and I figure that if the nesting is so deep, and the sections so long, that I can't tell where they begin and end, maybe that's a style issue. David -- David A. Black, Senior Developer, Cyrus Innovation Inc. The Ruby training with Black/Brown/McAnally Compleat Philadelphia, PA, October 1-2, 2010 Rubyist http://www.compleatrubyist.com