4 ms·
My favorite abuse of switch statements in C is to use them for co-routines in C... http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html http://www.chiar
by peapicker 10y ago
My favorite abuse of switch statements in C is to use them for co-routines in C...
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
http://blog.robertelder.org/switch-statements-statement-expressions/ http://blog.robertelder.org/switch-statements-statement-expr...
- huntergoldstein 10y agoTo add onto this: - http://dunkels.com/adam/pt/ http://dunkels.com/adam/pt/ Even though it is an abuse, these sorts of libraries are fascinating to me: making use of language features in unexpected (most likely unintended) ways.
- peapicker 10y agoAgreed! (I had forgotten about protothreads, thanks)