Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102341 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63781 invoked from network); 21 Jun 2018 13:15:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2018 13:15:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=carusogabriel34@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=carusogabriel34@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: carusogabriel34@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:36953] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/EE-32156-DF4AB2B5 for ; Thu, 21 Jun 2018 09:15:42 -0400 Received: by mail-wm0-f42.google.com with SMTP id r125-v6so6022967wmg.2 for ; Thu, 21 Jun 2018 06:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tg9ktp0gWzvKHn7hoYavMJH0SXOEizcluIEsv4XuUoQ=; b=PlXoZtpn18/P1Wh0xjRfa6wrCHlJ5KS43IZZ5n43ZEVqbN2pTa9D+hikTG77c4HX5V l1lSiJ9E34eYDlKz/mPDdPOcBctSV69kmInhokbeKEHkrYZ3BhTMKzPNI3+1mhXbNbX+ v0Yx9x6yKY6VMxXYmosUDNQRWhRJkmvGsoCt6rnOBv8AVoPrb9aaZiLd8VPsK0VOq0BC WzQ+s+H4bTtqRnBW2djWsn66qa75NfV9bIx8X1Egdgy27LzvBkoPI23e8EOof30hPTxT TPYS2BRhx0WiyE72mAARyBEElj6yhBfypFe7CBX6J3VZqtZMCaN2Z2Z5n0YiMyqAk+ct lpRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tg9ktp0gWzvKHn7hoYavMJH0SXOEizcluIEsv4XuUoQ=; b=ZwJjx21dIupyb57TtHkKLeQXPWLIfNnLWyqM9/FxytGjsysxTKYzu2H3tYE9tNisRO 0S4dOpjUbre6nYYJ3dqxi5wjFtPH0RMy9B2j3pWwgGA4lgZghIskUnQ74zhsiYndZ0qG umdE+vMLT8dpYH3Fscus71SCLqb6r9rkz3/oVzgvtmB5BDU5KmO5c0s+09wzBjemLlIW xSNdNASAMKJw3WIgX5Qaevf/Avnb6m+dbNnxoKnA/iX1fziy2YfCG1sm1yqBKEq9yLXi ovAw0lNKXBhBswf28o/+OnQXmKY6dLYPfnHtiapdjgYr5QGZsq/xFtCDPBUYru0gRZ/2 ZVpQ== X-Gm-Message-State: APt69E05gFBfGfWvnrbxGJibeIkwQiLQ6FhjkBuvp7Sv/YGo5vakeqHA 8Xz6CG1kPSKysBQZrr62v2wQSpFQildaPLp+Ah4= X-Google-Smtp-Source: ADUXVKIa69CNka2hqsO0GG+iEinbpuSumHRgLupyG10yVfbEliQRPjuQEzZyhXLmNhkfYWxN7XbOh2Q2QVCBhN4M7jc= X-Received: by 2002:a1c:4189:: with SMTP id o131-v6mr4838747wma.7.1529586938856; Thu, 21 Jun 2018 06:15:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 21 Jun 2018 10:15:25 -0300 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000024c9a1056f26b6dc" Subject: Re: [PHP-DEV] [RFC] Typed Properties From: carusogabriel34@gmail.com (Gabriel Caruso) --00000000000024c9a1056f26b6dc Content-Type: text/plain; charset="UTF-8" Nikita, Bob I'd love to thank you and everyone involved on this one. Types properties on PHP is something that we tried before, but due to a number of issues, we didn't make it. Unfortunately, I don't have the knowledge to help in the implementation, but I'd like to drop some comments about the syntax. As described in https://wiki.php.net/rfc/typed_properties_v2#syntax, I think we should only allow class Example { public int $num; public string $name; } Allow the `:` variant (`public $num: int;`) would bring a lot of doubts for new users, and the `{visibility} {type} {name}` is prett consistence in other languages. Again, thanks for this amazing work, and let's make for the next PHP version :) -- Gabriel Caruso --00000000000024c9a1056f26b6dc--