News for hackers. Stuff that matters.
Re:Upcoming changes in PHP 7.1 by bpicolo on Monday May 23, 2016 @07:51AM (#11753237)
Better yet, don't reinvent the world and just use commas?
Re:Upcoming changes in PHP 7.1 by fredleblanc on Monday May 23, 2016 @07:59AM (#11753271)
Commas 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.
Re:Upcoming changes in PHP 7.1 by jack9 on Monday May 23, 2016 @10:08AM (#11753928)
> 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.

Re:Upcoming changes in PHP 7.1 by Mithaldu on Monday May 23, 2016 @07:58AM (#11753267)
Commas 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.