Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129724 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 BA2FF1A00BC for ; Tue, 30 Dec 2025 16:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1767111944; bh=HmlMalieLekG01y6fRIWLERd8H85q5Q/5MQK+DI6W/0=; h=From:Date:Subject:To:From; b=bsySh0m/Xe2oFhLvS/2cE28jZ4wdDfnvUwLk3yxczMFhhBcsnP4X8/friex/LsC+f +qvNG5/yA87gSuTkQ8rccUZyaE6iT/iCXGF+F7vS0463jOyBWx/u60obq8EcTHNIm1 ag6/x7jsyFEQM8IquPLCmmyKAOgLumDAX3Hw6oBgrdWUkPF3+F97QJgzQpjHW1XX3Q wEayr0bhIV3WBoewzt2wPCI5TU7es/hfjgc1IRK8319W2hUs9rCONQuekqZ/lPuAH4 ttEYZseV4nsrqYl22yK8Y6nbr7NARUJ6ZBCi1YY5uZHGVaX5wWc03pQpRwGeo/EQ2F NcUJu997mHfjg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 62EC518002F for ; Tue, 30 Dec 2025 16:25:43 +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=2.0 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,HTML_IMAGE_ONLY_28, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_REMOTE_IMAGE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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, 30 Dec 2025 16:25:42 +0000 (UTC) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-37d056f5703so75365311fa.0 for ; Tue, 30 Dec 2025 08:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maphpia.com; s=google; t=1767111936; x=1767716736; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=HmlMalieLekG01y6fRIWLERd8H85q5Q/5MQK+DI6W/0=; b=Mq+Yx75oQQ5Ue5UrEfYg/XdrCpRzT0sJyxywKimVWmQ3JJxsO6sEFPOssiZ4TCiGCl DGQ/pf2ok8XESK/bdQj+W40WIxfvzOz+yoeVZxnrRnqlU8Ie3DZ7w9LB7y73Zaq4+/+a 6GysjZkkCqNh0tLzC+1ltwLV1OJYkWZcHDk3ncTDolZ+AXlUPxmeUhS4mrzAz2qooxvG hARmgpv7Ns0nHYD1S4dFLoLa/44H/2sQBmYSvHcDahxCF0jTxFynGu46jaRVAPHrxpBq FGEDVSmk0ERjPop5RftAYZ72zJNA1WlQgM7x/3w152H5XJzTqYcdAuuiCf8V5DWBPJvU KFAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767111936; x=1767716736; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HmlMalieLekG01y6fRIWLERd8H85q5Q/5MQK+DI6W/0=; b=dlW7yNvhSIkfFtHGO/zkwaZ8NyxY8ybbaSIelGaGUpAVbwcFrH62DmHy4zbz1uQ31+ S5l5WYTpFLYBHv8RsIMXSY3mPWyuc+R2Gu+QJsf/imXP4h1VirpS1viBWtcsXI2mbkO+ jnCGoy9587C1+uLsOrWx8Nez/qejRTGvxszgvtIkNZjvL9ZEu/5QE1YD0Bhs63PythCm m9HWKrfyOQjjIikjgma0nLGWAHauGTtNaRnLey20FrAR6LO60uV7/4v4KJk9iBsQVpWc 3OcqwocsaBJX08PzkS/FF8anuuVVo/TJy9yVnTHuOVsFm7I3eFxALgFcwdaX2Ae8VFV3 5mdg== X-Gm-Message-State: AOJu0YxqZyDxPm1hiftI/s9Kti1cPFnv7p+rQU6p6MKgb6B6iwOpzTNd h5FDLyIsJB2q0JybuVrEJ8RQmWoK2AIxqT60q74D1EMWx+2ctwu5WH3b9rKB1KJmM0BK4RJ1Pue gLVn5WvknmgZWHKU3Np3l/snzfL+xXKnSj+TBlSG9CmLZK9DfcKI0dg== X-Gm-Gg: AY/fxX79tV6TloKr8rqgSPYmXymCXpQf097iOyZUa2AJ0wJA/bJ2pD7bVK5p3+XCqnB Gmvfac4Ho9STVROyvzuYpHwUY7Gdfp8vVzLqexyGseBGqWcAy7kiZev2n/4Ne/F3cPW5iKjySkE 2VKohM3sHFUIOqIWA4tt7OtTC4cEtXcugxqeH4p2sFL1UR95pZT0O+/YNcHSsJmgDtymVGhxRlO pLV4THqEhX2GoRxayNBY/fxeM55/b4fqbGDzjH/iD3m6GfwM/RDpBnZp9brPg+adCbNCt4Y3rZX piL0JXgm19R0NEANAuZ1uogt6A== X-Google-Smtp-Source: AGHT+IGuGg2Z3t0XeXcVyiWKFT+nwpw0mMSKf2sDwUITUgSzVXx0syF6p6h4VD4CewN6cJT43PzrJR7OEZ5sSxIImLg= X-Received: by 2002:a2e:a552:0:b0:37b:9771:4f41 with SMTP id 38308e7fff4ca-38121699ac6mr113946891fa.37.1767111935978; Tue, 30 Dec 2025 08:25:35 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 30 Dec 2025 10:25:24 -0600 X-Gm-Features: AQt7F2rHsgUE7ilTgfVEjucNj91zYFJqbxx4pSqzFaYoshLNfYFx_FTfpLD9rEk Message-ID: Subject: [PHP-DEV] Request for RFC Karma: "use-from syntax for namespace use declarations" To: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000039075406472dcfed" From: str@maphpia.com (=?UTF-8?B?U3R1YXJkbyAtU3RSLSBSb2Ryw61ndWV6?=) --00000000000039075406472dcfed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello internals, My name is Stuardo Rodr=C3=ADguez, and I would like to request RFC karma to publish an RFC on the PHP wiki. I am a professional PHP developer with over 15 years of experience building web applications. You can find more about my background here: - LinkedIn: https://www.linkedin.com/in/stuardo I have prepared an RFC titled "use-from syntax for namespace use declarations" which proposes an alternative `use` syntax that improves readability by placing imported symbols first, followed by a namespace prefix introduced by `from`. Example: ```php use ClassA from Vendor\Package; use {ClassB, ClassC as C} from Vendor\Package; ``` This is syntax sugar equivalent to existing imports: ```php use Vendor\Package\ClassA; use Vendor\Package\{ClassB, ClassC as C}; ``` I have already implemented the necessary changes to the Zend Engine (lexer, parser, tokenizer exposure) along with comprehensive test coverage. The implementation: - Introduces T_FROM token - Supports single imports, grouped imports, and function/const imports - Treats `from` as a soft keyword to preserve backward compatibility (function from() remains valid) - Includes 7 new test cases in Zend/tests/ plus tokenizer test I would appreciate receiving wiki karma to create and publish this RFC for community discussion. My wiki account username is: "str"\ Thank you for your consideration. Best regards, Stuardo Rodriguez -- Stuardo Rodr=C3=ADguez Mercenary Web Developer La Maphpia =F0=9F=8C=8E maphpia.com =E2=9C=89 str@maphpia.com =F0=9F=93=9E +502 3462-7= 169 --00000000000039075406472dcfed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello internals,

My name is Stuardo Rodr=C3=AD= guez, and I would like to request RFC karma to publish an RFC on the PHP wi= ki.

I am a professional PHP developer with over 15 years of experien= ce building web applications. You can find more about my background here:- LinkedIn:=C2=A0https://www.linkedin.com/in/stuardo

I have prepared = an RFC titled "use-from syntax for namespace use declarations" wh= ich proposes an alternative `use` syntax that improves readability by placi= ng imported symbols first, followed by a namespace prefix introduced by `fr= om`.

Example:
```php
use ClassA from Vendor\Package;
use {C= lassB, ClassC as C} from Vendor\Package;
```

This is syntax sugar= equivalent to existing imports:
```php
use Vendor\Package\ClassA;use Vendor\Package\{ClassB, ClassC as C};
```

I have already imp= lemented the necessary changes to the Zend Engine (lexer, parser, tokenizer= exposure) along with comprehensive test coverage. The implementation:
-= Introduces T_FROM token
- Supports single imports, grouped imports, and= function/const imports
- Treats `from` as a soft keyword to preserve ba= ckward compatibility (function from() remains valid)
- Includes 7 new te= st cases in Zend/tests/ plus tokenizer test

I would appreciate recei= ving wiki karma to create and publish this RFC for community discussion. My= wiki account username is: "str"\

Th= ank you for your consideration.

Best regards,
Stuardo Rodr= iguez

--
<= tr>
Stuardo Rodr=C3=ADguezMercenary Web DeveloperLa Maphpia
=F0=9F= =8C=8E=C2=A0maphpia.com<= /a>=E2=9C=89= =C2=A0str@maphpia.com<= /a>=F0=9F=93= =9E +502 3462-7169
--00000000000039075406472dcfed--