Comment

Comment by ta_ca

my only beef with zig/jai is that they both have strong opinions on things like operator overloading and i am afraid they will end up just like java.

i have nothing against having strong opinions, i am the biggest offender but completely disallowing some features, some of the best features static typing can offer is just nonsense.

every language designer should study common-lisp and start with the operators : and :: these two operators alone tell you that the language designed for practical use.

for me overloading the operator + and function 'add' is exactly same. you should then forbid function overloading as well now. you can argue about the weakness of operator overloading but disabling completely, not even a workaround?

why not just enable oo and have safe alternatives instead? . safe(a + b) . a s+ b

parent ta_ca 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton