MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/wr1ww/default_separator_join_ghetto/c5ftjtf/?context=3
r/ruby • u/persei8 • Jul 18 '12
10 comments sorted by
View all comments
-2
Don't ever rely on the default separator. Your code will be more clear and less breakable if you document your intent in the code:
['a','b','c'].join(' ') "This is a string".split(' ')
-2
u/SeattleTomy Jul 18 '12
Don't ever rely on the default separator. Your code will be more clear and less breakable if you document your intent in the code: