Uniform Function Call Syntax #1704
kuchta
started this conversation in
Language design
Replies: 1 comment
-
Yes, we have. Unfortunately it doesn't work too nicely for Hylo because our name resolution strategy is quite sophisticated and therefore it is very valuable for our solver to bound the search space for method selection. Nonetheless, all functions are in fact "free functions" in Hylo and they can be called as such. For example (in new syntax):
We have two dedicated features to extend the methods of a type: traits and extensions. Traits in particular are essential for supporting separate checking and compilation of generics. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Have you guys ever considered using UFCS for methods like D/Nim/Koka/CppFront? Apart from simpler and more universal syntax, less concepts to learn it provides a very straigforward way to extend type's methods.
Beta Was this translation helpful? Give feedback.
All reactions