HaxeFoundation / HaxeFoundation/haxe
Macro reification vs String interpolation
Open
documentation
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
There is a recent change that gives priority to string interpolation over macro
reification, while it was the opposite before:
```haxe
class Test {
static function main() {
var e = "haxe";
trace(hello("world"));
}
static macro function hello(e:String) {
return macro 'Hello ${e}!';
}
}
```
```
❯ hx dev && haxe --run Test
Switched to dev
4.2.0-rc.1+d1c16a072
Test3.hx:4: Hello haxe!
❯ hx 4.1.1 && haxe --run Test
Switched to 4.1.1
4.1.1
Test3.hx:4: Hello world!
```
Contributor guide
Assessment
This issue has not been assessed yet.