Is the problem that they don't quite offer a complete replacement for sealed traits and case classes?
-
-
Replying to @propensive @missingfaktor
I think I found 6 or 7 design mistakes. Each significant enough to outright reject this proposal. But SIP process doesn't apply anyway.
1 reply 0 retweets 0 likes -
Replying to @oxnrtr @missingfaktor
Not to Dotty, it doesn't... but Martin did change the proposal in response to feedback on his PR, so it's not like it was a closed process.
1 reply 0 retweets 0 likes -
Replying to @propensive @missingfaktor
I don't think any changes can fix it. It's not only what it does, but that the whole thing is a confused, sprawling, over-complicated mess.
2 replies 0 retweets 0 likes -
Replying to @oxnrtr @missingfaktor
I think the risk is that it provides concise support for something you can already do, and costs one feature, and less syntax uniformity.
1 reply 0 retweets 0 likes -
Replying to @propensive @missingfaktor
I made some comments about the issues with Dotty's enum design a while ago. Repeating well-known mistakes over and over–this lang is doomed.pic.twitter.com/l1apcbHALL
1 reply 2 retweets 1 like -
Replying to @oxnrtr @missingfaktor
Thanks - that's a more constructive teardown, even though I don't agree with all of it. :)
2 replies 0 retweets 0 likes -
Replying to @propensive @missingfaktor
To follow up on that, this is the proposal/implementation I'm talking about: https://gist.github.com/soc/c8df5d28f20716a7e98823a79d1ad082 …
1 reply 0 retweets 0 likes -
Replying to @oxnrtr @missingfaktor
Thanks, Simon. It's less ambitious than Dotty's enum, but that's not necessarily a criticism; it just makes some comparisons a bit unfair.
4 replies 0 retweets 0 likes -
Replying to @propensive @missingfaktor
Idea of this was to fix an issue while adding close to zero footprint. It looks less ambitious because that's the core design requirement.
2 replies 0 retweets 1 like
I understand. It's just that Dotty enums are a "disaster" at solving this task only insofar as Scala is a disaster as, say, an XML checker.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.