Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28426 invoked from network); 9 Jan 2013 15:20:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2013 15:20:46 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.44 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.44 mail-vb0-f44.google.com Received: from [209.85.212.44] ([209.85.212.44:46978] helo=mail-vb0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/3B-02684-DCA8DE05 for ; Wed, 09 Jan 2013 10:20:46 -0500 Received: by mail-vb0-f44.google.com with SMTP id fc26so1648152vbb.17 for ; Wed, 09 Jan 2013 07:20:43 -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=QyzpDQ+BfwjlQrWnZAYNajkLKljACa2LmwAnau9ppW8=; b=rHoAu5ricCd5LcZp3ByeauQ07s6OBxAQiqZJkV4koD6eVu11DcH7DiH6VzQEv8AzeD By7yckhXz6fdDuPE43DgR8MojEz47SxuW8AASXQxV9pixyq+icRRp14Fm0iT9L5Z8Y+e XJYQhAqIRBeEepsc21BJqlB8NZvVuNEuUdItS66xE0Z3XdWEMqO3d1PzZ0RGYwOgYSIj jDlxuuzlzjJfCDvNqL/X+SEvYIw7D4yeIij5VVqLf02sopSSJoeRuE600B/ufuAgI6y2 I4ikYHYmmC+AELTUl/fMz0fqbeKEOfGOVco8YpWiy0SnLiJGdie71HYXH8YHsACyyrAC /1KQ== MIME-Version: 1.0 Received: by 10.52.156.67 with SMTP id wc3mr77852312vdb.19.1357744843545; Wed, 09 Jan 2013 07:20:43 -0800 (PST) Received: by 10.58.232.196 with HTTP; Wed, 9 Jan 2013 07:20:43 -0800 (PST) In-Reply-To: References: <50ED4C18.3090806@zerocue.com> Date: Wed, 9 Jan 2013 10:20:43 -0500 Message-ID: To: Levi Morrison Cc: Clint Priest , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=bcaec53aece2185c6e04d2dc9b0a Subject: Re: [PHP-DEV] - True Annotations From: ircmaxell@gmail.com (Anthony Ferrara) --bcaec53aece2185c6e04d2dc9b0a Content-Type: text/plain; charset=ISO-8859-1 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 --bcaec53aece2185c6e04d2dc9b0a--