+ 1
I wonder.... the indentation in Ruby is optional for clearer code.. or mandatory like in Phython...
4 Réponses
+ 6
It's optional. Or rather it's a stylistic choice.
Ruby only looks for the line breaks.
But, I think, it's very important for the readability of the code!
+ 2
I think its optional,but i would recommend clear code anyway
+ 1
Agreed completely.. it makes the code clearer to read...
+ 1
By indenting you make your code Readable thus easy to understand and debug,just in case an error occurs.