Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126291 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 369DF1A00BC for ; Wed, 5 Feb 2025 08:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738743710; bh=epGCm3FjGXm64yYPH6y6OehMLD6YQfegQw/SNXQ/w5c=; h=From:Date:Subject:To:From; b=kiQ8s0q4eGUi30bxiA9LbwYo6mgv1GFwcwSv6ZWBMu4W55MUhuLEKXe2IFpdE2xa0 VqMXpAkk/A5tOk6qaNhYYy7o+XM/KdRMHJQYaGDGfnq838w9mqzNr4m0zG4UyInmss ydqrFMumNuT/JwUsuGxEu9pUS/Daf4jdaVvR8IkgmQ5K6tkv0lPwjKIQIMocaRhNYa D/DD6bg7JS+bZ0m4U5JXZB7s4p3DrqLuiy62SerMUsGHKJ6sRoVhfu0ago15xEbHEA lEtLTqKkSzR4oyse8JI/ZUNA6pBxtvMuIGdIqo36dF9dDyn2Ttg+AbzRM04omudCXe 5fV9GRKcvtfAg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A03D2180003 for ; Wed, 5 Feb 2025 08:21:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: <91liahim@gmail.com> Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 5 Feb 2025 08:21:49 +0000 (UTC) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-6f47ed1f40dso41646317b3.1 for ; Wed, 05 Feb 2025 00:24:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738743874; x=1739348674; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=epGCm3FjGXm64yYPH6y6OehMLD6YQfegQw/SNXQ/w5c=; b=BLWDIMwVl8mmXOGZ26fHPOxuHUlSTNerVjJ0ealQ4G2NrCpZL4X/qBKk7dQIPP+Rjq dkAhLxGnI4OnXsZIBsPM5SKEg7LfsWU9KUZ8jBKYZ1uSUJwSANNWPJ/gwmW18hwrr5Oh 5GbmoGCV3t8q3roBgVY9UVOxX1V1QEJQYBy8lpQjeWbBNEAzpy5Rdz7R1sH6cXH4ieoM bH86cNqCR/4CL1OCqE5cfpuoLqxOJxCwOCZpR0N+wQcvK8pKTa3T33mE6WerXvv/5bE5 SdU+SkAISavyipnlzye0zplR/HS/Fq3bk9SuH0q6S/FT4C2PrJ6UOsQXx6MvrdZlb5ZF 7GlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738743874; x=1739348674; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=epGCm3FjGXm64yYPH6y6OehMLD6YQfegQw/SNXQ/w5c=; b=cPa7wz2MHYKer6WUp9wXBYjwSFToPNhexoRNwaQtz7fIQ4AkaaBZGELJ4k2EIvu9wp 0NcB0sZRsyJRk7D5GVIZ7pPi9kSUScHrKHkXnkT1/gYjRgPVfG/3/UslygAybQ5u1Mn9 Y8nG5ahSkeVGvgkRhAdL31Up0+PZU/PQmqzrxYwFxkZ+OBiVYqySfBj/95K/qRumNeVE 5mJDlsalsfTMWS5npbmOtkYjBc2yo7TJy37zMEOxiB9sBmLUgSMjbhwYKgJ28LsVl3BX A2ermx5xviVmTvFW0gYDSBW8cxyIuVcqGIoGgkuoFTH23JbuUtu+kz0Pxx7e4nukONHn olWw== X-Gm-Message-State: AOJu0YxK1UJ2XNheuahFlQZOU6hR5MDiG9ZULn+rojEI7q/rYCQrNlRX E3co3qxIkshRUrvFxlkPwQlk3gfmtXSKpcW7ZZkDRWxRIbCIK9086fRd6JltKHziX6BhTXnjvEy z416HZX+5WoJiVlXN+45fQ79eCH0+kwVw X-Gm-Gg: ASbGncv3UCjoa2n7LjyVHLWo0yVMSRRf5DZ9hMfKL5wiqe0a0XKnDegt3+qotfDqyf0 15owKBKwNeULGiOm6CNNlTdTS8Xepfm2uuK1qYFjXXXCPGx4phA3e11ROAYJ8u+qWj/Zh0A61LC o= X-Google-Smtp-Source: AGHT+IGtw4WHS2yeeOeqOp+3eLXcbr1cy8baTZ7yfcO2jccapSNos6z/Ci5TU/RPh0TGrrI8AMAXk/Eu/sQLSMPs6WM= X-Received: by 2002:a05:690c:4d84:b0:6ef:5013:bfd9 with SMTP id 00721157ae682-6f989eb1858mr17633627b3.10.1738743874432; Wed, 05 Feb 2025 00:24:34 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 5 Feb 2025 13:24:23 +0500 X-Gm-Features: AWEUYZm7EWYqXzO3TD7gDpSfXjQDerIq36hhVY2mA_k4LXJJjwGqCS9VqZDyr84 Message-ID: Subject: [PHP-DEV] RFC: Not Null Assertion Operator To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000fdb7e6062d60da55" From: 91liahim@gmail.com (Mihail Liahimov) --000000000000fdb7e6062d60da55 Content-Type: text/plain; charset="UTF-8" Good afternoon. I would like to create an RFC on the implementation of the NOT null assertion operator. Do you think it makes sense to create it? I was able to implement the operator. I've already posted a draft in my github - https://github.com/rekmixa/php-src/tree/feature/not_null_assertion_operator An example of the implementation of this operator can be viewed in kotlin or in typescript. The point of it is that in places where we did not expect null, we should not make additional checks, but use this operator. It will also be convenient for highlighting in the IDE. --000000000000fdb7e6062d60da55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good afternoon. I would like to create an RFC on the imple= mentation of the NOT null assertion operator. Do you think it makes sense t= o create it? I was able to implement the operator. I've already posted = a draft in my github -=C2=A0https://github.c= om/rekmixa/php-src/tree/feature/not_null_assertion_operator
An examp= le of the implementation of this operator can be viewed in kotlin or in typ= escript. The point of it is that in places where we did not expect null, we= should not make additional checks, but use this operator. It will also be = convenient for highlighting in the IDE.
--000000000000fdb7e6062d60da55--