16:42
<Jack Works>

first class functions call locations

16:42
<Jack Works>
what is that?
17:06
<nicolo-ribaudo>
Maybe something like https://astexplorer.net/#/gist/08ef948999a34f5e37da8cf9ca9c38ff/46948e5f05780b6f56789736aa0822f841a51f79 (output in bottom right), even if I'm doing it for JSX and not for calls, where I'm passing an object stored in a top-level variable to every root JSX element, so that when it's rendered multiple times I know if it was generated by the same source code
17:20
<Jack Works>
Interesting 🤔
17:26
<Luca Casonato>
I have sooo many use cases for stuff like this. But most of them are probably rather confusing because they rely on this implicit source location state which I think is very non obvious to beginners. Not sure how I feel about it yet
17:31
<nicolo-ribaudo>
typeof arguments.callLocationToken === "symbol" 😎
17:42
<Jack Works>
😂
17:42
<Jack Works>
arguments.caller