alantech / alan

Autoscalable Programming Language
https://alan-lang.org
MIT License
305 stars 10 forks source link

Simplify the planned interface design #780

Closed dfellis closed 2 months ago

dfellis commented 2 months ago

Some groundwork for interfaces (but not implementing them, yet). With Alan v0.2, there's no distinction between properties and functions. Properties are just functions that return the sub-type for you. On top of that, with operators now only allowed to bind to a single function name, a special interface line type for operators is no longer necessary. This means that now interface lines are just function names and call signatures, which has been converted into any type you want, so a lot of special parsing logic can also disappear.