Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27480 invoked from network); 14 Sep 2016 15:15:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2016 15:15:03 -0000 Received: from [127.0.0.1] ([127.0.0.1:16738]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 25/35-21040-77969D75 for ; Wed, 14 Sep 2016 11:15:03 -0400 Authentication-Results: pb1.pair.com smtp.mail=pheagey@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pheagey@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.172 as permitted sender) X-PHP-List-Original-Sender: pheagey@gmail.com X-Host-Fingerprint: 209.85.161.172 mail-yw0-f172.google.com Received: from [209.85.161.172] ([209.85.161.172:35242] helo=mail-yw0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/35-21040-96869D75 for ; Wed, 14 Sep 2016 11:10:34 -0400 Received: by mail-yw0-f172.google.com with SMTP id u82so23138942ywc.2 for ; Wed, 14 Sep 2016 08:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=JvhELZhbijU7I0bY8n4x50ORMyUujxOfgqot/ZEqu6w=; b=K4tL1XyLTK1/O9MwRVrw6QbjLOZ7aon56ZS6eITkcnW9eG2zqRxkR4fPaGCkuHYy/G XslgyK/ZOCPGLceZOz5Gn6dCsDgAm9qcd9syvJnTJHqTw7MgtlTjgEMLkL2ypt7YFLNM qTNz6fxjlYRZH57MJgpkHbvSwG+eOuMlnInaHm0MJy4iDqZYyWKD1A4WrcLLaXgKSB4r OYbaiboP4fHuHgcqiCFGnUJeKYp8eQw0ETNjnpB2D2ms49TsqEbAqcYUJ5gou7HosJvu QSJ0u5HJVVbrPuEKczjoYslec49ltYdHa87YvRyr6B5x0MMhqSjyBqnVof/QSu8J4/v7 2HEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JvhELZhbijU7I0bY8n4x50ORMyUujxOfgqot/ZEqu6w=; b=f8TQjQOKLnUjFR8iXTSrJnGRqnlYmtmRmob+1Baaq2ZVA2xf+Egsbzlh8kHU9v2hF1 yvyzEf61o4jks5kcbpuZnfKW2rl2kXAQrhjbxDxQFNSLyPN3J6rLjTLeF7gPnLJOGugF tcqzu6A8mLnf7os3xCtNnle6mebvNPrzxDCN6EYn9xfSFMRCWiPW9FniUXy6HwzKiVYS GAFJTRk4F+vwg0GacF6xZVmhv8+NY9ab+R+Hg285wh6DgXPGPxupfV9V1czTWc8i85fI VTxvcpXAgSp1X5kO27LwjCf2Id7lZXlgh8/Swm3XlhwCD/6SOoEh9nQloAnrMsQ9xOPo da7w== X-Gm-Message-State: AE9vXwP+CsaqARoSPFKLB/zWtB669nGrlE+IV1AwsrZEGFYZIIVUW/yYHxpfZSjYt2WvdAV0h2R8KxeiJwm/YQ== X-Received: by 10.129.95.70 with SMTP id t67mr3137891ywb.284.1473865830305; Wed, 14 Sep 2016 08:10:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.224.72 with HTTP; Wed, 14 Sep 2016 08:10:29 -0700 (PDT) Date: Wed, 14 Sep 2016 11:10:29 -0400 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Concept: 7.1 nullable function parameter format ... From: pheagey@gmail.com ("David (Dj) Eddy") Issue: Currently the format for nullable function parameters is as follows: `fn(?int $param)`; this makes little visual sense from an outside perspective. What does the `?` mean? PHP does not have a `?` data type; it is very visually ambiguous. Suggestion: `fn(null|int $param)`. This uses the same syntax format that other logic constructs in the language use as well as being very explicit to the data types allowed for the parameter. For the moment only `null|{one other data type}` would be the goal of the RFC; however in future iterations multiple data types could be allowed. Gauge initial interest in a alteratio of this type, thanks for your time. David E.