An end to implicit fall-throughs in the kernel
An end to implicit fall-throughs in the kernel
Posted Aug 2, 2019 10:11 UTC (Fri) by dgm (subscriber, #49227)Parent article: An end to implicit fall-throughs in the kernel
/* fall through */
is OK, but
/* no break */
is superior (from the perspective of a non-native English speaker).
Posted Aug 2, 2019 13:04 UTC (Fri)
by Freeaqingme (guest, #103259)
[Link]
So for all intents and purposes they could call it 'foobar', and you'd simply learn what 'foobar' means in this context. Furthermore, I think it's a good practice to actually describe the behavior by what it does, not by what it doesn't do.
As a fun anecdote, the PHP language for a very long time had a T_PAAMAYIM_NEKUDOTAYIM token ('::'). Even though PHP uses primarily English terms, it was written by two Israeli men, who felt it was nice to put something of their own culture/heritage in the language. Undoubtedly it's a bit weird for an English programmer to get an error message 'unexpected T_PAAMAYIM_NEKUDOTAYIM', but after you Google it the first time you simply remember that you probably put some '::' somewhere where the interpreter did not expect it.
Posted Aug 2, 2019 21:35 UTC (Fri)
by edeloget (subscriber, #88392)
[Link] (1 responses)
Posted Aug 5, 2019 10:19 UTC (Mon)
by dgm (subscriber, #49227)
[Link]
;-P
An end to implicit fall-throughs in the kernel
An end to implicit fall-throughs in the kernel
An end to implicit fall-throughs in the kernel
