hegel icon indicating copy to clipboard operation
hegel copied to clipboard

Modular Language | Language Plugins

Open sirinath opened this issue 5 years ago • 1 comments

Is it possible to add a language plugin framework to extend the language so that in cases like https://github.com/JSMonk/hegel/issues/82 different even conflicting features (e,g, there cannot be 2 plugins extracting types from comments in a given context so the plugin should have a purpose and scope so plugins do not conflict when using) can be added?

The plugin them selves can perhaps be extended and enhanced also to add additional functionality.

sirinath avatar May 23 '20 03:05 sirinath

Hmm, It's a good question. For now, I think, the answer is No, because if we will have plugins we have a complicated setup process. This point is on the opposite side of our design goal of "Hegel is easy to use JavaScript with types." But, I think, it could be implemented after several releases. Thank you for the idea ^_^.

JSMonk avatar May 23 '20 08:05 JSMonk