by spraak · 7y ago · 0 comments
These are features that help eliminating uncertainties:
1. Function head pattern matching
This also includes anonymous functions used in Enumerable functions like map, reduce. Which is my most favorite way of using pattern matching
2. Guard clause
It's part of function definition so it's visible in very nice ways; not mess with the body.
3. Process supervision strategies
Let it crash! The elegant way of dealing with exceptions and unexpected errors.
It's a fair trade with static typing.
Imperfect is putting it lightly. I loathe it. Aside from useless errors ("here's what the success typing looks like! Ignore the any()s, and fix it! But I won't tell you what's _wrong_!"), it doesn't run against tests (which bit my ass in production last month due to some return values being ignored, and only actually matched in tests.)
> especially with the error message improvements available via my Erlex library
My interest is piqued. Does it help unfuck Dialyzer error messages?
That said, in a lot of other ways Haskell is not as ideal for web development, particularly if you need clustered stateful stuff.
Typescript and friends I've never really managed to develop any keen interest on, even though Typescript itself is an upgrade over JS.
I'm unfamiliar with F# and .NET stuff. C# I don't like one bit, if that's anywhere near that avenue. I've tried Reason but didn't quite click with it. Ended up preferring Elm for the frontend side, although Purescript could be even a better fit for me there.
https://www.hanselman.com/blog/LearningAboutTheFSAFEStackSua...
https://github.com/kunjee17/awesome-fable https://fsbolero.io/ https://medium.com/fuzzycloud/current-state-of-web-programmi...