From: Frasier Mruby Date: 2008-10-07T10:37:36+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? Justin Collins wrote: > None of your suggestions seem to address this issue. Matching 'end' is > no harder than matching '}'. If you get confused, add documentation like > some people do: > > end#if > end#while > end#class > It's a good way. It's just that there're more typings. If you says "matching end is no harder than }, then } could be an considered as an option I assume. >> My first thought to use brace "{...}" to replace "END" since it's a >> popular convention. >> > > But then it looks like C/Java. > Liking other languages may not be bad. Ruby's syntax on my first impression is that it's similar to python, thinking about the "class" or "def". Ruby has evolved by learning merits from other languages. > I think 'end' looks fine, personally. I used to use curly braces all the > time, but now I find myself using them as little as possible. do/end > seems nicer and I don't get them confused with hashes that way. > Thanks for your reply, Justin. It seems I am not the only one who are concerned with the "END". Not 2 years ago, 1 year ago, or now. On ruby's logo, it says "programmer's best friend". It seems ruby's objective is to make it programmer-friendly language. When there are not few people have been wondering if any improvement could be made on its syntax, some effort may need to be considered on the improvement. If it's determined there's absolutely no room to improve, then that's fine. If no improvement will be made in near future, I can live with "END", though in my mind I may still have the thought of it and wondering if it could be made better. Don't get my wrong. I hope ruby getting better and can attract more programmers. With this mind, I pointed what I felt, which is shared by other new comers. -- Posted via http://www.ruby-forum.com/.