Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9548 invoked from network); 20 Jun 2018 21:59:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2018 21:59:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.176 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.223.176 mail-io0-f176.google.com Received: from [209.85.223.176] ([209.85.223.176:36809] helo=mail-io0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/09-32156-84ECA2B5 for ; Wed, 20 Jun 2018 17:59:39 -0400 Received: by mail-io0-f176.google.com with SMTP id k3-v6so1163979iog.3 for ; Wed, 20 Jun 2018 14:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=OvW5K1T3uqkMQosjEUEwFKbF2BCArAVu9IUTKvcjWCM=; b=Wsv39b/BJtsmWmlKZBLOvzakZGujC9KYmXN+++AOZZNmDbzhR+lE/75TVKcs9R7fig vp0mEdPrg8xQnLT8LTmywdYKztdpdF9ES+7wh4OsjtkkorMnkFFLj6Y3m7LSzW75ygXs Vk8sFHRs33eAf4V72+k4N7b7llW5k6ubaKG1uxM33vJWpD1GyHyBrlLrdBNx39zOgmRE w4aRIT4ZV4CXURGHdmJLGTqpbHBIRZ8k7C0nPXL0+euKfyj/hvFLWVUsh/x2mKpMXjkL KgvjE7qpmV7VAAw5EYE4DcIUaXKBMo5H61ewWZ1uqT9MW1ykvbD+3yyurlOBPBqsbS17 pRGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OvW5K1T3uqkMQosjEUEwFKbF2BCArAVu9IUTKvcjWCM=; b=RfIHxT86vol41GykqXKDe5LrDojNmvhoQ9o/52KQVPhgPKnzxtedT5Pe9cCgVesg6w eE9kVcf/7BPHUELR8oXQM+8ndH4E57+0LXx5+MRj+Iycg4x5eOt02K8067ijD0ljMQ5D I32qMLRUJ6fklY/JjUUhkOB8U79oq9gpV/hP+wrYheLjTDVuhq5U8X65HDOahfvSJGkx H13npZHdsej/EiLKHOCMG4C6Gt/8WUVDGtwg710lDKfhpGuqWBO+aLFhIoqe5auhA4jK l7inpUF5g+QkWnq3I+Q+rWAbByBt2JhqlGsV7Bova/v+/ntHegWxAuZMpvzRXC31b/4v Fbbg== X-Gm-Message-State: APt69E1xiWneJZPJFHpm3BCTt1lKFHtqTURDNClfIhvyHGOquKKlhCGo Ylx6iCDWW0ntS/VcruCMjyCAbfO53H41UNcB3lnIPA== X-Google-Smtp-Source: ADUXVKIpi7WGfK/Rzb2DiERQ8LQVPdujqoBagSNZK2OuTN2Sabz6fw6j5dy1bigrfTbz+dIl56iIDkt7v53Bfp9MZL8= X-Received: by 2002:a6b:2550:: with SMTP id l77-v6mr17672351iol.47.1529531974006; Wed, 20 Jun 2018 14:59:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:fe0c:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 14:59:33 -0700 (PDT) Date: Wed, 20 Jun 2018 23:59:33 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000fbc097056f19e9d0" Subject: [RFC] Typed Properties From: nikita.ppv@gmail.com (Nikita Popov) --000000000000fbc097056f19e9d0 Content-Type: text/plain; charset="UTF-8" Hi internals, Bob and I would like to present a new typed properties proposal for your consideration: https://wiki.php.net/rfc/typed_properties_v2 The proposal allows you to annotate properties with types, which are enforced at runtime. Unlike the previous RFC on this topic, the new proposal also supports typed static properties and references to typed properties. Please note that next to the main body, the RFC also contains an "Alternatives" section, which explores the problem space and considers trade-offs of different behaviors in some detail. Finally, while this RFC currently targets PHP 7.3, this is a large and complex proposal and we may not be able to meet the deadline, in which case this feature will go into the next PHP version. Regards, Nikita --000000000000fbc097056f19e9d0--