Self-host: Munged minus macro

Description

In bootstrap, the macro form of cljs.core/- is evidently available as _ so, for example

works.

Repro:

Environment

None

Attachments

1

Activity

Show:

Mike Fikes November 30, 2018 at 9:44 PM

0001-CLJS-1593-only-return-a-var-when-we-re-looking-for-a.patch fails script/test-self-parity

In particular, you end up with

followed by Cannot read property 'truth_not_called_QMARK' of undefined errors, perhaps related to munging of

Erik Assum April 11, 2017 at 9:05 PM

Yep

Don't remember the details now, but the way I got to fixing the minus was by the code-path which
tries to figure out macros, IIRC.

I guess I'll have to look at the code-path which resolves normal symbols as well.

Mike Fikes April 11, 2017 at 2:00 PM

Interestingly, the patch works for cljs.core/- but it doesn't seem to completely work for new symbols defined in cljs.user, if I'm interpreting this correctly:

Erik Assum April 7, 2017 at 10:29 PM

So, in self-hosted (at least) the munged names are available, you can see this for `+` as well

With a special `ns-interns**` as

you see that `-` is stored under `_`, e.g. the munged name in the ns-object

Details

Assignee

Reporter

Labels

Patch

Code

Priority

Created February 25, 2016 at 8:32 PM
Updated November 30, 2018 at 9:44 PM