29 ms·
Just wanted to mention Nim here. Others mention Go but it has a lot of "noise" because of the error handling and other features. For native binary creating lang
by _8j50 3y ago
Just wanted to mention Nim here. Others mention Go but it has a lot of "noise" because of the error handling and other features. For native binary creating languages, I haven't seen any language "neater" than Nim although I hardly go out of my way to sample languages.
- thiht 3y agoGo’s error handling is not noise, it’s signal.
- maleldil 3y agoIt's signal in a sea of noise. The premise (errors as values) is done better and more concisely by languages like Rust, Haskell and Ocaml with ADTs.
- masklinn 3y ago> Go’s error handling is not noise, it’s signal. It's a ridiculously noisy signal, which makes it difficult to distinguish from noise: because all the error handling looks the same and is extremely verbose, it's difficult to distinguish special cases you need to pay attention to. Tons of languages have "errors as values", Go stands out in its verbosity, as well as its lack of safety / certainty.
- thiht 3y agoOf course Results/Options would have been better from the start, but it’s too late for that. As a dev though I infinitely prefer Go’s error handling than exceptions for instance, specifically because of the verbosity and explicitness
- archargelod 3y agoYes, as a beginner, I was really surprised how easy to read Nim is. I've been learning it as my first programming language (apart from bash, lua, and unsuccesful attempts to learn Python) for a couple months now. And the fact that I could just open source code for standard or external libraries and immediately understand what it does was immensely helpful.