Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127474 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 lists.php.net (Postfix) with ESMTPS id AA0FB1ADB36 for ; Tue, 27 May 2025 07:08:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748329581; bh=bAP5jr/JKUCTy8PsTYaAk03EUY0jX+mUs2CD6XRvJNI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gWWD38gsuz6ynEAcWLaCbuASOHbynNqf3FuM+/W+rNqqRRbIRp2T4CF5WEAM4No2U Uz2rVFQafvyL2dbNJ06B+1b72+wJMeMprxRBOuOsQjSBaow0gtB5OiJ1OtLBmZ3O9l XE1IF3KoUVMxDLNpEJLxcDwTmX1RWSFF8W3jA3h5WotJ40yriJb2b/YWwk5+DMuodS zEcwQPTtyLgloTNPuq8NE0/URPhUHuzUNxZg1zi/UydJej9JXiiiQZwK5fLuRMDGm3 9UOaTbaxWK1Fumhg6v8IXBR/9/qtPbW/RKx9WowYxxBT1p6Q3hVfz00BVVPViNelOj MK+qnxZoMCRJA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F1F1C180057 for ; Tue, 27 May 2025 07:06:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (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 ; Tue, 27 May 2025 07:06:18 +0000 (UTC) Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-7353779b10dso1528529a34.2 for ; Tue, 27 May 2025 00:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748329704; x=1748934504; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yktKMLsqljmH/eQPNrKq9CFYnBD751s6b1/BBUkk1GM=; b=lAoauCPpWYvnKztkijIGlOGb19Vian8Td0i0kRS0uv081x3OHJunduaeJpEGneu6W0 FEqhuoU00ObZnbOkqiF6TeeSX7k+gC5KkgEs2PJJkzdfG1J9/jDsW3knEfG2RWLHZFRg 5RdPCeHMUfrRpNbuVULNXrKEPFRmC2WHfv9ohpPyBhvEhu/wRZH7RvNfODN4Dt6xhiqw MnqhBUGlT+FvSBYF0NYwlSrLSXYAsvFeszN0EiinK6AYrFXLeD2SzsbOCeg8NvzGVBsF O12xAdm5D2aTtXqCKDemLKlmQ/pjakqYO1uvStv/lDYnmJQH4z3TDgE5yOFWSr2rKjEN RB6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748329704; x=1748934504; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yktKMLsqljmH/eQPNrKq9CFYnBD751s6b1/BBUkk1GM=; b=kKVmVOjXWscny2LBYmwx4H8OFrQmmnKOucTbqjInYAexo8z/YL2VTTWVtUttHaTAUb Eb5s/9BYqUtB9LJInudsQ+Gr2/NB34QwLmD1bitHZU1I3f6Dgox8JnWklOn9vdleY/iV /fhGBgLmU3AEyzIAdxqrBcIsSyqkbQPeOlSUgilmwnxi7vCwifqbAiCem0lo7L8C3/Vv Hwo+h2/FbP3bEAjgsGYUkrW20zvtkVIabcOP6rNPo/ysIKELfVz+ektGxtp3zvRP2SFQ OLujJJU6U6w3UklSSKxVMWpIyhjH6hnDV/ZQFn9PdqMTKq29eMAURsmEILQ10h8qejpG zrYg== X-Gm-Message-State: AOJu0YyHx13BeNuQepts6I4Rmfec3pQ8rxrGD/mAayqAEfQ6W+Wi6zn/ ANaxDcUsxEZDsBujMQzum+GkrCvV0P99vQr34MJp/84z42MC4Ho0/PrRnXQ6MvCY1s8EAtDDzdF g4He7NbioQT91qMJSZFAZSMeZe7CM675LlxVe1oU= X-Gm-Gg: ASbGncsgkzLjrhUNHlJ3R+9oh/qAAivB2P+5O2rJu/a4BvPwbn1/XejqTiYSyCIOGIT 3RYq18+8U8tt5/st+jP5W22yi7zF9CfUOJL7Nyc5Codsq/k2jUdp4vy31d6P5IwYcIhpUWsgZAH Ir0yyBz/QQO95XubV0BEFWWFpdzQ1m3bzBIQ== X-Google-Smtp-Source: AGHT+IHxguYxKFqroDjtc4HDXCS+7ATnyE5Y0TkyeuDhnurBqLoxTgB6dHZm8fq5VJttSltMFYMiR82HQuwvrxKHBEU= X-Received: by 2002:a17:90a:ec8b:b0:309:fd87:821d with SMTP id 98e67ed59e1d1-3110f53d36emr17814121a91.29.1748329693179; Tue, 27 May 2025 00:08:13 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 27 May 2025 10:08:02 +0300 X-Gm-Features: AX0GCFsxPkViRdfFAAJLi78yTsJ2Kv3rm4h0rqkBTGhBvN9s9TrBr1SV0nsU1l0 Message-ID: Subject: Re: [PHP-DEV] RFC: Single-Expression functions To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000004ff27b063618ba46" From: xepozzd@gmail.com (Dmitry Derepko) --0000000000004ff27b063618ba46 Content-Type: text/plain; charset="UTF-8" As Tim said, it needs at least a 2 week discussion period. Could you share the reference? Did I miss it or did I not see a PR linked from the RFC? While technically having an implementation is not a prerequisite of an RFC, it is strongly recommended. (Also, having written the original patch, I'm curious if you're doing it the same way I did. It also may be sensible to use the compile step rather than strictly the lexer; moving pipes from strictly lexer to a compile step was a very smart move, for instance, as it simplified a lot of the ancillary behavior around debugging and error messages.) Here it is. I've added the link to the RFC. It was one of my first PRs in PHP, so I did the things I only learned from there. Lexer still should be adjusted to accept `=>` syntax. ---------- Best regards, Dmitrii Derepko. @xepozz --0000000000004ff27b063618ba46 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<= div class=3D"gmail-AppleOriginalContents" style=3D"color:rgb(0,0,0);font-fa= mily:Helvetica;font-size:12px;direction:ltr">

As Tim said, it needs a= t least a 2 week discussion period.

Could you share = the reference?

Did I miss it o= r did I not see a PR linked from the RFC?=C2=A0 While technically having an= implementation is not a prerequisite of an RFC, it is strongly recommended= . =C2=A0(Also, having written the original patch, I'm curious if you= 9;re doing it the same way I did.=C2=A0 It also may be sensible to use the = compile step rather than strictly the lexer; moving pipes from strictly lex= er to a compile step was a very smart move, for instance, as it simplified = a lot of the ancillary behavior around debugging and error messages.)
=

Here it is. I've add= ed the link to the RFC.

It was one of my first PRs in PHP, so I did the things I only lea= rned from there.
Lexer still s= hould be adjusted to accept `=3D>` syntax.=C2=A0

----------

Best regards,
Dmitrii Derepk= o.
@xepozz


--0000000000004ff27b063618ba46--