Reid Thompson wrote: > On Fri, 2009-05-22 at 14:33 +0900, Tony Arcieri wrote: >> Well great! I'm not really sure how that script works, but cool. >> However, >> what you have there is a marked departure from how Python actually >> works. >> But if you're happy with it, great. Go for it and see how popular you >> can >> make it. >> >> > It doesn't really. Or at least only simplistically; by re-writing the > input code, attempting to place 'end' in the proper place based on > indentation. It breaks silently if you happen to misplace your > whitespace incorrectly, placing an 'end' in the wrong place. This is an interesting aspect of indentation-sensitive syntax. I've had Yaml files that, technically, were valid Yaml, but I had mistakenly added some extra indentation. I then had to puzzle over some odd errors when running my program. It seems like an easy enough mistake to make, with the unfortunate risk of creating proper Yaml, so you don't get any errors from the parser. I've wondered if this sort thing is a problem in Python; perhaps it is less likely there that any accidental indent or out-dent will still give you well-formed code. -- 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