Skip to content

Comment on A possible future of Python in the browserparent

Comments

it was the first language that ever gave me compile error because there were cases that my switch statement didn't account for.

For C, you can use the switch -Wswitch-enum with GCC to get warnings and add -Werror to turn the warning into an error.

The reason I was surprised is that it wasn't explicitly an enum type but rather a char (which in retrospect I suppose is sort of like an enum).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.