Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global object (merge prelude-ls and other) #6

Open
determin1st opened this issue Sep 4, 2017 · 0 comments
Open

global object (merge prelude-ls and other) #6

determin1st opened this issue Sep 4, 2017 · 0 comments

Comments

@determin1st
Copy link

livescript populate global namespace with it's functions,
for example, if we use this construct:

x in y

then, function in$(x, xs) is created. the name collision is avoided with $ character.
it could be also a single global object, for example L$ with the function L$.in(x, xs)

first,
it would avoid collisions better (less names).

second,
it would allow to merge anything within this object without requirement to include that functionality by hand (require for backend and script includes for frontend). code could be added dynamically on usage when specific condition met.. or it could be added with 'use strict, prelude-ls'. not sure about it, may workout this later..

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

No branches or pull requests

1 participant