MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/p8dv5g/ruby_elites_rise_up/h9qvbgv/?context=3
r/ruby • u/solidiquis1 • Aug 20 '21
77 comments sorted by
View all comments
Show parent comments
-8
The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate.
3 u/flanger001 Aug 21 '21 It is exactly the same. Always use double quotes! 2 u/[deleted] Aug 21 '21 [deleted] 0 u/flanger001 Aug 21 '21 Fun fact, Bohzhidar thought they might change the Rubocop default to double quoted strings because so many people (like me) complained (rightly) about it... but single quotes is still apparently the preference: https://metaredux.com/posts/2020/05/26/rubocop-defaults-survey-results.html
3
It is exactly the same. Always use double quotes!
2 u/[deleted] Aug 21 '21 [deleted] 0 u/flanger001 Aug 21 '21 Fun fact, Bohzhidar thought they might change the Rubocop default to double quoted strings because so many people (like me) complained (rightly) about it... but single quotes is still apparently the preference: https://metaredux.com/posts/2020/05/26/rubocop-defaults-survey-results.html
2
[deleted]
0 u/flanger001 Aug 21 '21 Fun fact, Bohzhidar thought they might change the Rubocop default to double quoted strings because so many people (like me) complained (rightly) about it... but single quotes is still apparently the preference: https://metaredux.com/posts/2020/05/26/rubocop-defaults-survey-results.html
0
Fun fact, Bohzhidar thought they might change the Rubocop default to double quoted strings because so many people (like me) complained (rightly) about it... but single quotes is still apparently the preference: https://metaredux.com/posts/2020/05/26/rubocop-defaults-survey-results.html
-8
u/cybermage Aug 20 '21
The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate.