You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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..
The text was updated successfully, but these errors were encountered:
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..
The text was updated successfully, but these errors were encountered: