I like switch statements without defaults when possible because if someone adds another enum value, it causes compiler warnings/errors and forces us to update all necessary code. _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
- [webkit-dev] Idiom for functions with all return values ... Michael Catanzaro
- Re: [webkit-dev] Idiom for functions with all retur... Maciej Stachowiak
- Re: [webkit-dev] Idiom for functions with all r... Michael Catanzaro
- Re: [webkit-dev] Idiom for functions with a... Andy Estes
- Re: [webkit-dev] Idiom for functions with a... Maciej Stachowiak
- Re: [webkit-dev] Idiom for functions with all retur... Andy Estes
- Re: [webkit-dev] Idiom for functions with all retur... Alfonso Guerra
- Re: [webkit-dev] Idiom for functions with all r... Maciej Stachowiak
- Re: [webkit-dev] Idiom for functions with a... Alex Christensen