Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59182 invoked from network); 10 Jan 2013 01:58:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2013 01:58:12 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.220.176 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:51191] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/DD-02684-3302EE05 for ; Wed, 09 Jan 2013 20:58:11 -0500 Received: by mail-vc0-f176.google.com with SMTP id fo13so38595vcb.21 for ; Wed, 09 Jan 2013 17:58:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=96qkRz2XoPHss+5MB2ZU/KZ3X4QT0MzbImdKgjY9XzA=; b=lO1pxP/3a9axPWjjFAF3HlgMGOQ36MyT82fQZClk2BRqdEdC1ZWvCdsNXT7wGW5paB xEblkjNDAbX7qIEYqqyH1fBdMu0yxW0WdazZBWY8i+8g4eu5fAa4hC9Mji84pESDgdgS ZxhkDDfYH404BB0uEh41ItaauuTzLyMdPF2Stxfm52GbeejR/t3S3Z5Fxj2uiWdj22bF Lgv+Iur/IwfjcZDLm0W7qmX9EKJHlocE3Lrs+3RcMVC5TFULDcfFa6wAgB+p0TnTUSpq fowuiJijX2ZZpAMegZb63NpLxhaoZYwJlxtrgKwZ1cS60IPAMAAZn3nLHwe9gzPzQVj+ SliA== MIME-Version: 1.0 Received: by 10.221.10.6 with SMTP id oy6mr87125059vcb.65.1357783088155; Wed, 09 Jan 2013 17:58:08 -0800 (PST) Received: by 10.58.102.137 with HTTP; Wed, 9 Jan 2013 17:58:07 -0800 (PST) In-Reply-To: References: <50EBDEEE.8070605@sugarcrm.com> <50EDA1C5.4040500@sugarcrm.com> Date: Wed, 9 Jan 2013 20:58:07 -0500 Message-ID: To: "guilhermeblanco@gmail.com" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=bcaec54eed36a6ca3b04d2e5822e X-Gm-Message-State: ALoCoQlLzvHLoVIT6DFwTUbxELcnWriiKO+OCgS9nESzhzvWh/Kx0kJ7smf/xj1GXGcOQtxeUn7J Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: rasmus@mindplay.dk (Rasmus Schultz) --bcaec54eed36a6ca3b04d2e5822e Content-Type: text/plain; charset=ISO-8859-1 I'm going to address these question in the proposal I'm working on - once it's all in writing, I will post for debate. On Wed, Jan 9, 2013 at 2:57 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > - Should we support nested annotations? > > - How [Foo()] will be different from new Foo()? If they are not different, > is there an alternative to not bloat lexical parsing? > > - How parameters would be injected? Is constructor the only way to inject > parameters? > > - How would we handle optional parameters, like [Foo("bar", null, null, > "woo")]? > > - Suppose you wanna fix the optional arguments by named parameters, like > [Foo("bar", test="woo")]. Doesn't it diverge with PHP interests of not > supporting parametrized arguments? Should we modify the former or the > later? Personally I'm a fan of named parameters. > > - How would we deal with inheritance? Should a method, for example, > inherit the same annotations from parent or not? > > - Suppose that you define annotations to fix the inheritance problem, how > would it be? > > - How would we cast possible usages of an annotation to only class, method > or property? Using annotations too? > > - How would it be the syntax to declare a new annotation? > > - Would it be possible to modify an annotation value using Reflection, for > example? > > - How could it be handled on APC to minimize the performance impact? > --bcaec54eed36a6ca3b04d2e5822e--