Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46876 invoked from network); 4 Aug 2015 12:25:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2015 12:25:25 -0000 Authentication-Results: pb1.pair.com header.from=jholmer.in@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jholmer.in@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.174 as permitted sender) X-PHP-List-Original-Sender: jholmer.in@gmail.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:35523] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/E3-24673-33FA0C55 for ; Tue, 04 Aug 2015 08:25:23 -0400 Received: by wibxm9 with SMTP id xm9so163923254wib.0 for ; Tue, 04 Aug 2015 05:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lg/lP9frQFeGTwpkf4X9PK+8xP2dqUVNmXPejfCRhRU=; b=iWlfbL5TM1auzcpe/bKFWviWyiUZxdBT8x9Uchd+r9qENuY8IKStSt1G9EoBMxUTQZ a4dZBXq+G9U6dXwLBC3r/4x2l8WVehBAi2o8uGiNuXpAXH7xSwzfHuEbarnkAulBbfBg TSQPjxo9u5v7PEgz1ZIXWOdUHmv9iN/tBJHAhPVIYO4mL9SA6JOTEN1hRrUjnXxCrCS5 U0eVxJ9LaNnNw4qH9ux336r2eKkK1I6MZbRwP8jY+9zxADX8kg3EM0qNSalrIla61XqE 5Ld42BkySrmlAv2E07iiMQIVqaAIb0GTBiyfbMOsFzCtdaAuLUpkDr6h/zVNWJtLQwuS 3qsA== MIME-Version: 1.0 X-Received: by 10.194.2.51 with SMTP id 19mr8137218wjr.40.1438691120652; Tue, 04 Aug 2015 05:25:20 -0700 (PDT) Received: by 10.27.131.194 with HTTP; Tue, 4 Aug 2015 05:25:20 -0700 (PDT) In-Reply-To: References: <9996b5784a1bfbca80b07de01f1a7a94@k-piste.dy.fi> Date: Tue, 4 Aug 2015 08:25:20 -0400 Message-ID: To: Scott Arciszewski Cc: Peter Lind , PHP Internals Content-Type: multipart/alternative; boundary=047d7b3a89363026a0051c7b61e1 Subject: Re: [PHP-DEV] PHP 7.1 Cryptography Projects From: jholmer.in@gmail.com (Joshua Holmer) --047d7b3a89363026a0051c7b61e1 Content-Type: text/plain; charset=UTF-8 > > >> 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. --047d7b3a89363026a0051c7b61e1--