Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

https://eev.ee/blog/2016/09/18/the-curious-case-of-the-switch-statement/

I have no idea why I decided to write about this, but I found out some interesting things!

Files

Previews only

The curious case of the switch statement / fuzzy notepad

Since the first statement is a regular assignment, the right-hand side is evaluated immediately. The paper doesn't delve very deeply into this, but since labels were first-class values, you could presumably choose a label using whatever logic you wanted and then jump to it.

Comments

No comments found for this post.