class Myclass
def initialize(arg)
if arg.significant
arg.each do | par |
#do something
end
end
end
end
All the "end"s are rather superflous and its a bore to fix them and
their indentation while refactoring. So my question is: couldn't the
"end" statement be made optional through some global switch or signal to
the parser?
Note that I wrote "optional" because using Python in HTML is a pain any
conversion of text often screws up Python code (because white-space gets
lost) In those cases using "end" is preferred,
Regards,
Iwan
> All the "end"s are rather superflous and its a bore to fix them and
> their indentation while refactoring. So my question is: couldn't the
> "end" statement be made optional through some global switch or signal
> to the parser?
I think this sort of thing has come up before. Certainly the whole
"significant indentation" issue's been rehashed again and again. It
seems most rubyists prefer the `end's.