StardustPL / Stardust

"A programming language that doesn't make me angry to use it."
https://StardustPL.GitHub.IO/
The Unlicense
4 stars 0 forks source link

Planning: function call syntax equivalence #13

Open LB-- opened 9 years ago

LB-- commented 9 years ago

All of the following should be equivalent:

LB-- commented 9 years ago

f is to be searched for in the following order, using argument-dependent lookup:

The search must finish before selecting the result to use for f.

If f is enclosed in [] then the search must start and complete at compile time, each time the expression is reached.

If f is enclosed in {} then the search must start at runtime, each time the expression is reached.

In either case, failure to find non-ambiguous result for f should result in an exception being thrown from the expression.

LB-- commented 9 years ago

Also equivalent: f(a, b) and a f b

LB-- commented 8 years ago

I'm not using that syntax anymore, ignore the first and third posts here.