Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49522 invoked from network); 31 Jul 2018 19:07:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2018 19:07:34 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.216.171 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.216.171 mail-qt0-f171.google.com Received: from [209.85.216.171] ([209.85.216.171:33225] helo=mail-qt0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/47-14835-573B06B5 for ; Tue, 31 Jul 2018 15:07:33 -0400 Received: by mail-qt0-f171.google.com with SMTP id c15-v6so17187404qtp.0 for ; Tue, 31 Jul 2018 12:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=HdIHQHnnQt1bYc2WbNyJ+bNtV7yvIRbCPt3KDMQHvWA=; b=JvQUQlTKV+1DFyWGFXyQFWlGDefazIErP8uKF46SHdl245cYCWk1VMVtHclblMNQ/9 unJjU9BLxWVt0677pjN6vQIAlyuYEQ+y4Gg75rTt1KL/kGa7LYKagoL+TL6MSEdQ2fjN juPMUxFQ6AlfQkVO64o05aWML1kLDvO9ZENu63yv2ga6DmwOMVTGtl2EUDVLpILkNEbU /10PZrW3AT0eLeL+Nq+5Xd2XLKHDJww5ilb6yZX2gUL7/OQUcTNoY7B686FL8Im9lJys A5nrICWHL/6kSMf379bxIoUL19D9TyX2LhaQPEtoTof/bPHsQ2sA29tGqq7O2e3xaLil 9U3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=HdIHQHnnQt1bYc2WbNyJ+bNtV7yvIRbCPt3KDMQHvWA=; b=NC9/m1j91q3wDrVnF+iRYGIwwGNUoJXYOarUcW0ZAKDE1pLmQsCtw2UY6+EpdQfFqL YvLPq+cojzngqzzywzZh9oY5rRyabdnBRNXro6vcV0bBCQvnf/+KEOZo/u6RzkDoV7i5 e0R7K3uWNQDpjVfA4yJQD0tpynS3kwh3ZPoeycT/w4wsEuAGFUGc2AwmRbFQdf6HzfFr LnThYW8nolzVcFiDlvez3uJJa8AmdixxDDwohPCks/HRaRacaHfwRanUMIosRvdCG3XJ Qd3naIQtRUQTa0Ii3jtJTAFoIkh5VRrOWgjPdtjkcLz3mEZ7vtBXPGIPM42KdxTX5A7i mq0Q== X-Gm-Message-State: AOUpUlHmZkWkOpetbqgDlfhcZP3wmizn+ZxCUMY+DJO558VC/f8haOXS 1IHQvSi6rZWZalgi3Q/bzyNNejZYMJn7E6xGrfNrJnk2 X-Google-Smtp-Source: AAOMgpfUhV47g6cg7YbpgeGshFu+grJqajrwmbNWafSP0oM7c+IyFnYuy4a93FaAsShSkUmbbz8PKeuDM1TVlzmtMNM= X-Received: by 2002:ac8:2aba:: with SMTP id b55-v6mr22231517qta.286.1533064050795; Tue, 31 Jul 2018 12:07:30 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 2002:a0c:ada6:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 12:07:30 -0700 (PDT) X-Originating-IP: [98.213.160.75] In-Reply-To: References: Date: Tue, 31 Jul 2018 15:07:30 -0400 X-Google-Sender-Auth: EC2BEiAorXQbz8VRFGpXJbNai9Q Message-ID: To: David Rodrigues Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Nullable cast (?int) From: pollita@php.net (Sara Golemon) On Tue, Jul 31, 2018 at 2:23 PM, David Rodrigues wrote: > Currently we have support to (int) cast (and similar). But I do think that > we too need a possibility to do a nullable cast. In terms, it will cast to > (int) only if value is not null, else it should be kept as null. > I like this proposal. Short, simple, and consistent with other parts of PHP syntax. Write up an RFC for it? -Sara