DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 2, 2022 3:10 UTC (Mon) by wtarreau (subscriber, #51152)Parent article: DeVault: Announcing the Hare programming language
By the way that's something I really don't like: it reuses that ugly "colon colon" symbol from C++ and it's placed more than once per line in the tiny example (and same in the few libs I've looked at), which significantly complicates reading and writing. The fact that the tiny example supposed to sell you the language doesn't look pleasant to read is a bit concerning. It even features an example of how to introduce a long-term bug by using "sha256::SIZE" in the array definition instead of using "hash.SIZE" like one could have thought of, which would allow the hash type to change in the future and the array to automatically adapt (or the declarations should have been placed together).
It seems to prefix every single value from enums with their type, which forces you to choose between short and possibly conflicting names, or painfully long names to write and read. I don't know if it also forces to change every single line of code when using an alternate implementation of a lib, which is often one of the problems of languages mandating namespaces everywhere.
It seems there's been a lot of work done on it already, which could be a good indicator of maturity. That said it's strange that cross compiling is still in the roadmap, given that by now it should be well known that cross-compiling should be the default approach and native compiling just a special case of it, otherwise there are significant risks of making things much more difficult later.
Let's see how that evolves, it's probably a good start.
