3 ms·
You have often a (single) big switch in lexers (often automatically generated). In network communication, you have often a big switch on the type of message (le
by username42 13y ago
You have often a (single) big switch in lexers (often automatically generated). In network communication, you have often a big switch on the type of message (less often automatically generated).
It is not a bad pattern to have switch in those cases, but it is often present in code analyse rules. Code analyse tools are very bad to distinguish between good use of a feature that is rarely used and missuse of this feature.