adomokos / light-service

Series of Actions with an emphasis on simplicity.
MIT License
837 stars 67 forks source link

Why is `to_s` called within interpolation? #47

Closed padi closed 10 years ago

padi commented 10 years ago

I just saw your most recent commit: https://github.com/adomokos/light-service/commit/972c83ff66bf1d442804864fe42e627247d07b6c

Just want to ask why calling to_s within a string interpolation is safer than letting the interpolation call to_s for you.

http://stackoverflow.com/questions/10076579/string-concatenation-vs-interpolation-in-ruby

adomokos commented 10 years ago

Feels more explicit. Send a PR to remove it if you'd like.

adomokos commented 10 years ago

@padi: are you good with the code as it is? I'd like to close this issue if possible.