Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: