Gavin King

Results 1136 comments of Gavin King

Well, sure, the problem with option 1 is that the performance is potentially much worse.

@CPColin I'm not sure, I would have to try it. And then I would have to decide if I actually like it ;-)

> I would have to try it A quick attempt at this choked ANTLR, but I don't have time right now to dig into precisely *why*.

@CPColin no, "choked" as in resulted in this error: > Decision can match input such as "VALUE_MODIFIER" using multiple alternatives: 1, 2, 3 i.e. it looked ambiguous to ANTLR.

> I think it is a good idea to be extremely careful with syntactic sugar magic that makes the language less explicit and more compact, because it also makes the...

Now that we have #7058, I feel like the pressure for this feature is significantly alleviated.

I have edited the issue description since we've already supported switching on Java `enum`s for a long time now.

Well, I made a totally trivial change to remove the limitation, and went looking for broken things. Surprisingly, everything I've tried seems to be working just fine! I'm still looking...