From: Ben Giddings Date: 2005-08-11T01:00:12+09:00 Subject: Re: Yet Another useless Ruby 2 Idea On Aug 6, 2005, at 10:42, Daniel Brockman wrote: > gabriele renzi writes: >> well, if I write >> >> def foozer(x): >> if x >10: >> print x >> do other stuff >> >> and I do comment out the "if" line, there is a syntax error >> > > Uh, this is much less of a problem with indentation-based > syntax than with delimiter-based such. > > def foozer(x) > if x > 10 > print x > end > do other stuff > end > > Comment out the `if' line in the above code and you still > get a syntax error, but on a different line! Right, because you need to comment out both sides of the conditional. That's not too difficult. Compare it to python def helloworld(debug): if (debug): print("starting engines\n") print("main screen turn on\n") print("You have no chance to survive make your time\n") print("Hello World!\n") If I want that bit of text to appear every time I run the program, I not only have to comment out the "if (debug):" line, but also fix the indentation on all the lines in that conditional. Ben