HaxeFoundation / HaxeFoundation/haxe

New feature request: Output macro source at invocation point when in --display mode.

Open
#6,236 13 comments 0 reactions 0 assignees View on GitHub
enhancement feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

One of the things that folks don't understand well (particularly new Haxers) is how macros work, and what their macros are actually doing. It would be nice for IDEs to be able to pop up a window showing the (source) results of their invocation. To do so, the compiler can probably do the following:

(According to @nadako:) ... - when typing a macro call, check if we're in our special display mode and the requested position is within the call pos and return the stringified expr

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.