News for hackers. Stuff that matters.
Re:Show HN: A utility for running exhaustiveness checks on “... by grabcocque on Monday March 20, 2017 @09:56AM (#13914221)
Isn't trying to hack a language to have the type system you wish it had, rather than simply using the language you wanted in the first place, something of a futile exercise?

If you want a language with ADTs and exhaustive patterns out there, there's plenty to choose from. Using a language with a weak type system and then trying to wish that fact away seems pointless.

Re:Show HN: A utility for running exhaustiveness checks on “... by Zikes on Monday March 20, 2017 @11:27AM (#13914961)
If you'd like to point us to a language exactly like Go in every way, except that it does have variant types built in, then by all means.

Excepting that, we all have to accept that languages have their pros and cons, and we are each responsible for weighing those pros and cons against our personal preferences and values.

Re:Show HN: A utility for running exhaustiveness checks on “... by meddlepal on Monday March 20, 2017 @10:17AM (#13914399)
Not everybody gets to choose the language they want to use at work unfortunately.
Re:Show HN: A utility for running exhaustiveness checks on “... by pjmlp on Monday March 20, 2017 @10:34AM (#13914512)
We get to choose, when there is freedom to choose to whom we work for.

Of course, changing jobs isn't always an option.

Re:Show HN: A utility for running exhaustiveness checks on “... by michaelmior on Monday March 20, 2017 @10:38AM (#13914554)
And someone can still love their job even if the language in common use isn't their personal preference.
Re:Show HN: A utility for running exhaustiveness checks on “... by burntsushi on Monday March 20, 2017 @10:39AM (#13914557)
That's the case for me at least. I was even involved in choosing Go at our company a few years back. A language doesn't need to be perfect in order to enjoy using it. :-)
Re:Show HN: A utility for running exhaustiveness checks on “... by bbcbasic on Tuesday March 21, 2017 @04:24AM (#13920593)
The Haskell tax is high in my city as is the cost of living.
Re:Show HN: A utility for running exhaustiveness checks on “... by amelius on Monday March 20, 2017 @03:56PM (#13917161)
1. It's a bit difficult to change languages when you already wrote tens of thousands of lines of code for your project in one language.

2. Every language has its downsides. You can't mix and match features.