Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Add support for top level imperative forms #27

Open
arrdem opened this issue Jul 15, 2015 · 0 comments
Open

Add support for top level imperative forms #27

arrdem opened this issue Jul 15, 2015 · 0 comments

Comments

@arrdem
Copy link
Owner

arrdem commented Jul 15, 2015

One thing Oxcart was never able to do was support multimethods because as implemented in Clojure they fundimentally rely on a mutable indirection mechanism for dynamic installation of dispatch to function values. Since Oxcart tried to throw away all top level imperative forms and escape load order, this doesn't fly which does nobody any good and restricts the subset of Clojure which Oxcart can compile.

A happy medium could probably be reached by emitting namespaces as a class, having either a cinit or a concrete init method which sequentially invokes the static fns compiled from and for top level forms. Not ideal of course but a workable implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant