Skip to content

Instantly share code, notes, and snippets.

@polm
Created February 19, 2014 03:42
Show Gist options
  • Save polm/9085665 to your computer and use it in GitHub Desktop.
Save polm/9085665 to your computer and use it in GitHub Desktop.
Ruby Syntax
'abc' + ['x', 'y', 'z'].join
# OK
'abc' + ['x', 'y', 'z'].join('')
# OK
'abc' + (['x', 'y', 'z'].join '')
# OK
'abc' + ['x', 'y', 'z'].join ''
# SyntaxError: unexpected tSTRING_BEG, expecting end-of-input
# ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment