I come from ruby, you know, we have many GOOD habit, e.g. i always write string use double quotes, unless, we need interpolate or escape like “\n” or “\t”
After i switch to Crystal, the biggest trouble, is, i always write string like this: (rubocop fans)
string = 'this is a normal string'
It okay anyway, just curious, why do this decision? more simple compiler? or just follow others static language, like go, rust ?
Thank you for help, i read both links, i guess double quote with interpolation no performance penalty because Crystal is compiled instead interpreter directly in runtime.
anyway, this is not a minimal surprise when switch from Ruby to Crystal, that ok, i consider change my rubocop config to force use double quote instead anyway, thank you emacs, i have a function to do this transform with just a hotkey.
I think that if there was a performance different it would come from parsing the single quote string vs. the double quote string. But I recently read an article that showed that there’s no difference at all.