Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[Clojure] Ensure built-ins are scopes appropriately

Open wbond opened this issue 6 years ago • 1 comments

With a recent rewrite of Clojure by @mitranim, I wanted to make sure we are properly scoping the built-ins. The rewrite handled part of #996, but I believe we need to resolve the issue with built-ins, like we did with Go.

wbond avatar Feb 08 '19 19:02 wbond

There's two levels here...

  • Clojure's ~16 Special Forms are the fundamental building blocks and should get the keyword. scope (with some intentional deviations, like how in Go, var gets storage. scope even though in language terms it's a keyword)

  • Then there's the ~500 functions etc in the clojure.core namespace. These are what's equivalent to Go's builtin functions (aka Predeclared identifiers), though clearly more numerous, and should get the support. scope (with some deviations for math operators).

frou avatar Aug 02 '19 17:08 frou