From: James Britt Date: 2009-12-15T07:55:43+09:00 Subject: Re: Poll: Significant Indentation David Masover wrote: > > > What is your favorite Ruby template language for generating HTML? Erb or Ezamar, depending on what I'm doing. > > Which editor do you use to edit HTML templates? Vim > > Which editor do you use to edit Ruby source? Vim > > If Ruby had optional significant whitespace as a core language feature (maybe > like http://gist.github.com/117694), would you use it: Maybe. I prefer, for example, the more tolerant offside whitespace rules of Haskell to the brittle horror of Haml. But Ruby's not Haskell. Each encourages you to think about programs differently. > > If you actually dislike Haml, is it because of the significant whitespace? Probably; it's a poor syntax because it favors a rigid DOM-centric view over a fluid document view. (I see programs as documents, e.g. essays, so whitespace freedom matters. Same for Web pages.) > > Have you done any significant development in Python? > (yes/no) No. Tried it out, and have had to adjust some Python code here and there for one or another project, but nothing major. My(__self__) didn't care for it. > > > > That's all. > > I welcome opinions, but what I'm after here are either specific, countable > statistics, or a criticism of the questions being asked. I think there will be > a lot more to discuss once we have some numbers. > Ruby already has significant whitespace considerations: '\n' in place of ';', for example. A better term might be "significant indentation". More clarity on possible forms of significant indentation would be helpful, too. > Also: Should I cross-post this to the Rails group? > No. -- James Britt www.jamesbritt.com - Playing with Better Toys www.ruby-doc.org - Ruby Help & Documentation www.rubystuff.com - The Ruby Store for Ruby Stuff www.neurogami.com - Smart application development