Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64750 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30164 invoked from network); 9 Jan 2013 15:21:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2013 15:21:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:61007] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/9B-02684-F0B8DE05 for ; Wed, 09 Jan 2013 10:21:52 -0500 Received: by mail-ob0-f176.google.com with SMTP id un3so2295103obb.35 for ; Wed, 09 Jan 2013 07:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YgUEqLjlFeWPBfBJ4xKKW4X04AoDGZsmbkA6riIWUlI=; b=ASxstbrsHvEpxQzOSKUWSOfgeZyRv/EIkc9XqfZdpVgsuUfDHNY14bEd/obCkIavYr N1LBqvIay5fbZZWmPbpUKE0xMErnnDXDBDLahyzCLJpUmRVkBLLvfJzmVQdXzIFqtVqx x9HxWW1w7xVerary5ReGmGr/sJbkKcCvmpePguKlbiP79z5rKimz2lCWND3B5KuJKIMk eiFE0UNvebBsNWX5qzSABbE10Bu5b4JzrkopwU/x8GgV2FIwi7rqXmZtGdr7O7MAGPnu KuK23Dq4ASLVWPKOwCn52c5UaMp666n/IYQdtIedfrUcEX7f0S7XZt5v+WNdNxnYYov2 XXAA== MIME-Version: 1.0 Received: by 10.182.162.69 with SMTP id xy5mr48389413obb.95.1357744908606; Wed, 09 Jan 2013 07:21:48 -0800 (PST) Received: by 10.76.82.234 with HTTP; Wed, 9 Jan 2013 07:21:48 -0800 (PST) In-Reply-To: References: <50ED4C18.3090806@zerocue.com> Date: Wed, 9 Jan 2013 08:21:48 -0700 Message-ID: To: Anthony Ferrara Cc: Clint Priest , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] - True Annotations From: morrison.levi@gmail.com (Levi Morrison) On Wed, Jan 9, 2013 at 8:20 AM, Anthony Ferrara wrote: > Levi, > > On Wed, Jan 9, 2013 at 10:15 AM, Levi Morrison > wrote: >> >> > https://wiki.php.net/rfc/annotations >> >> Perhaps I am blind, but I do not see where in the RFC is defends its >> choice to use `<>`. Every other language I know of uses `@`, and I do >> not know of technical reasons why we couldn't use the same symbol. >> Annotations wouldn't be able to contain expressions so there wouldn't >> be anything that could generate a suppressible error. > > > Think about a function declaration: > > @param("bar") > function foo($bar) {} > > What's the parser supposed to do there? Is it an annotation? Or an > error-silenced function call? > > Granted, leaving off the `;` may make it possible to parse without ambiguity > (since the @ - Const String - ( - ... - ) sequence, followed by a function > declaration direclty may be possible)... > > But it's ambiguous at best (especially to read)... > > Anthony Maybe I'm a complete fool, but since annotations aren't executed (they are declarative only), this should cause no problems.