Re: PHP 7.1 Cryptography Projects

From: Date: Tue, 04 Aug 2015 12:25:20 +0000
Subject: Re: PHP 7.1 Cryptography Projects
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-87604@lists.php.net to get a copy of this message
> > >> Hi Peter, > >> > >> It's not really a "made-up string format", in the sense that it has a > >> precedent (PDO). > >> > > > > True, and that format sucks royally. It trips people up. > > > > Combining several arguments into one string is bad design. If it was good > > design, you'd see userland code using it all over the place. > > > I will fully agree that PDO's constructor format is terrible. Not only does it lead to confusion but it thwarts any IDE's attempt to help the dev fill the constructor arguments. I'm in favor of a format more like `new \Namespace\Class(null, 'AES-256', 'GCM');` As far as the rest of the discussion goes, I am +1.

« previous php.internals (#87604) next »