asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Builtin function lookup errors need improvement #115

Closed perimosocordiae closed 2 years ago

perimosocordiae commented 2 years ago

Say you misremember the name of a builtin function, and you write the wrong name instead:

io.Print(builtin.encode_ascii(37), "\n")

The error message returned is vague and not all that helpful. It also doesn't have a source highlight to point at the specific expression in question:

Expression cannot be called
4 | io.Print(builtin.encode_ascii(37), "\n")