News for hackers. Stuff that matters.
Re:Get rid of boolean function parameters by mtimokhin on Monday June 15, 2015 @09:05AM (#9719025)
Even in PHP (no named arguments):

    class Route
    {
       const RECURSIVE     = true;
       const NON_RECURSIVE = false;

       public function __construct($pattern, $recursive = Route::NON_RECURSIVE) {
         // ...
       }
     }
     $route = new Route($pattern, Route::RECURSIVE);
Re:Get rid of boolean function parameters by hewhowhineth on Monday June 15, 2015 @09:35AM (#9719163)
Why not

   $route = new Route($pattern, $recursive = true);