Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Chad Joan via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 14:33:23 UTC, Nick Sabalausky wrote: On 09/23/2015 01:44 AM, Sönke Ludwig wrote: An alternative idea would be to mix in a local "writeln" function, which can then be used multiple times without syntax overhead: mixin template interp() { void

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Chad Joan via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 19:28:03 UTC, Nick Sabalausky wrote: On 09/23/2015 03:18 PM, Chad Joan wrote: This is why I argued for alternative mixin syntax in D some ... years? ... ago. It'd be really cool to have a writefln overload that did this: int somevar = 42; writefln#("This