Skip to content

Accessing built-in functionality with better syntax. #4

@hhhhhhhhhn

Description

@hhhhhhhhhn

I think this project is amazing and probably the best there is out there in terms of client-side sandboxes, but I think there are a couple of things holding it back.

One of the main problems I've noticed is the lack of shorthand list/dictionary initialization and access, which could make the creation and access much easier.

old_list = list(0,1,2)
old_dict = dict()
old_dict.set("a", 0)
old_dict.set("b", 1)
old_dict.set("c", 2)

print(old_list.at(1))
print(old_dict.get("b"))

# Would look much better like

new_list = [0,1,2]
new_dict = {"a":0, "b": 1, "c":2}

print(new_list[1])
print(new_dict["b"])

But the real dealbreaker for me was that there is no built-in way of creating classes/modules. Something like the python class initializer would be very helpful to organize complex code.

Are there any plans for improving the syntax?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions