News for hackers. Stuff that matters.
Re:My Favourite Diff by MrStonedOne on Sunday April 05, 2020 @07:55PM (#22789762)
One annoying thing about the war on case fallthrough at the language level is the lack of imagination.

`continue` is a thing, compliments switch's existing `break` statement usage and is overall a much better solution for explicitly specifying fallthrough then returning special objects or c#'s abuse of goto.

Re:My Favourite Diff by Spivak on Sunday April 05, 2020 @10:52PM (#22790561)
I think it's a pretty syntax idea but it means continue works opposite your intuition inside switch statements compared to everywhere else.

I mean you could kinda argue that switch could conceptually mean something like

    for matcher, block in cases:
        if matcher.matches(subject) or continued:
            eval block
but then continue still feels magic since it bypasses the test.