Skip to content
Prev 38929 / 63421 Next

"+" operator on characters revisited

On 2011-01-23, at 4:34 AM, Gabor Grothendieck wrote:

            
That may be a matter of taste, but FWIW it seems that shell-style string interpolation (using the dollar prefix) has going out of style in recent scripting languages. Ruby uses the expression substitution construct ("#{expr}"), while Python has "str.format", both allowing arbitrary expressions.

And most editors have syntax highlighting that distinguishes strings from other program elements. This makes quoting errors pretty obvious.

Davor