[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] string formatting notation




On 22 Dec 2017, at 21:38, <brianlheim@xxxxxxxxx> <brianlheim@xxxxxxxxx> wrote:

OK... but overall not a bad solution, right? Think of it as a string literal which makes itself amenable to idiomatic string interpolation. There would be no way to get real string interpolation with a method call.

I certainly agree it’s useful and adds something that people might miss from other languages.. Personally it still feels to me like new syntax, which makes me uncomfortable. Since you said it’s not about typing I’d personally prefer something like

“…”.interpolate;

That’s nothing new, easier to understand and remember than f”...", and matches existing conventions and style.

S.