Which style of Ruby string quoting do you favour?

后端 未结 9 1817
挽巷
挽巷 2020-11-30 00:31

Which style of Ruby string quoting do you favour? Up until now I\'ve always used \'single quotes\' unless the string contains certain escape sequences or interp

9条回答
  •  余生分开走
    2020-11-30 01:11

    Like many programmers, I try to be as specific as is practical. This means that I try to make the compiler do as little work as possible by having my code as simple as possible. So for strings, I use the simplest method that suffices for my needs for that string.

    <

    My first simple test of the quality of syntax highlighting provided by a program is to see how well it handles all methods of quoting.

提交回复
热议问题