News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.