S
simonh
Hi all, just read this on bitwisemag.com and thought I'd better check
if it is the case:
"Incidentally, the braces following gets() are optional as are the
braces enclosing the strings after print and puts; the code would run
just the same if you removed the braces. However, Ruby is increasingly
moving towards the use of braces - particularly when passing
arguments to methods - and, in some cases, the interpreter will warn
you if you omit them."
attention is drawn to the sentence beginning 'However, Ruby is...'
surely this is not the case?
if it is the case:
"Incidentally, the braces following gets() are optional as are the
braces enclosing the strings after print and puts; the code would run
just the same if you removed the braces. However, Ruby is increasingly
moving towards the use of braces - particularly when passing
arguments to methods - and, in some cases, the interpreter will warn
you if you omit them."
attention is drawn to the sentence beginning 'However, Ruby is...'
surely this is not the case?