Skip to content

Built-ins functions are not reserved keywords or known identifiers #16

Description

@anouard24

I tried that:

>> println
Comet error:

        Identifier (println) is not bounded to any value, have you tried declaring it?
>> var println = 5
CometNop
>> println
CometInt(5)
>> println("Hello, World!")
Hello, World!
CometNop

As a Python developer, I'm expecting that:

>> println
<func builtins.println>

They are two options:

  • Let the developer overwrite builtins functions like user's functions:
>> func add(n) {2*n}
<func add(n)>
>> add = 70
CometInt(70)
  • Make builtins functions reserved keywords

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions