3 ms·
Better yet, don't reinvent the world and just use commas?
by bpicolo 10y ago
Better yet, don't reinvent the world and just use commas?
- Mithaldu 10y agoCommas would require changing the syntax and implementation of catch. This way exception names just become first class subjects that can be combined with an overloaded operator.
- fredleblanc 10y agoCommas are used in PHP as a sequence of things, not multiple options. This single-pipe notation is already established as the further-up comments states.
- jack9 10y ago> Commas are used in PHP as a sequence of things Choosing a pipe because it's easier for an obscure language feature, is not least astonishment. Commas are used for lists. The pipe is a bad choice among a nice feature.