hscript icon indicating copy to clipboard operation
hscript copied to clipboard

No string interpolation

Open arthurferrai opened this issue 7 years ago • 4 comments

String interpolation does not work on hscript. It would be nice to have it in hscript.

arthurferrai avatar Mar 26 '17 16:03 arthurferrai

According to the manual, interpolation is a compile-time feature, whereas hscript is just purely interpreted.

Slipyx avatar Mar 27 '17 03:03 Slipyx

I may open a pull request while I'm at it after finishing some stuff in my hscript-plus project

DleanJeans avatar Mar 27 '17 04:03 DleanJeans

Oops it's been over a month! Only until now I got the time to work on this. I've been studying the Parser code for a while to find a way to make it work like described in the Haxe Manual. I need some pointers to this!

UPDATE: I just found where it's implemented in the Haxe compiler: typer.ml.

DleanJeans avatar Apr 30 '17 14:04 DleanJeans

I think I can use string templates if I really need this feature: https://haxe.org/manual/std-template.html

arthurferrai avatar May 08 '17 14:05 arthurferrai