Skip to content

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

@determin1st

Description

@determin1st

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions