r/Compilers • u/thecompanygardener • Jul 05 '26
Tungsten - A fast, expressive programming language
https://tungsten-lang.org
0
Upvotes
r/Compilers • u/thecompanygardener • Jul 05 '26
View all comments
Show parent comment
3
u/Hjalfi Jul 05 '26
I notice it makes a lot of things implicit, like the argument names (e.g. the distance method in the example). This worries me a bit because most programming is an exercise in making implicit behaviour explicit. For example, how does it know that the parameter is another Point? What if it's actually a four -dimensional vector with x', y', z' and w', except w' isn't used? What if the parameter is a three dimensional vector which isn't a Point? It feels like a lot of focus has gone into the syntactic sugar but there hasn't been much emphasis on the fundamental semantics of the language.
e.g. physics support: 1234 m/s is a number with a unit. But it's also 1234 metres, divided by the variable s. How is this disambiguated? Whitespace?