Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91726 invoked from network); 28 Jun 2016 19:10:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2016 19:10:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=pedronaroga@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pedronaroga@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: pedronaroga@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qt0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:35800] helo=mail-qt0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/20-25084-B9BC2775 for ; Tue, 28 Jun 2016 15:10:19 -0400 Received: by mail-qt0-f170.google.com with SMTP id f89so12594873qtd.2 for ; Tue, 28 Jun 2016 12:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DMUM6+jbHKRjwRGxMoutmbDa8e/PjDVsdH94ALmoth8=; b=JHnI1orNID6qXv74q3yYlT6+xG/kCBO9broCFQu/WbHFPztHWmaz4wlbK3GP0Ees/c XLcNErB5hrQCkuZKKTz8MAJrcncgfdd0FiWYIBV5AFUm+5oAyUjTGNAYojWQQ9/FJwVn xsUxUW/Ps8uYxs76FIKAH49U8j7CT+BksAtc9oIaXMEPXN1XPoHLVG03RqCY6TNmotMz M9f0xg3AzCiEx2o/Fg2NDQlRY7Fs+5rCC7eI/+jC/uwGDxKlnKJXYAzT1gp5i4BSfvLO +XScJtBwJFLQdktj59EHQcYkyguwVYPw8TKpUlBvm6+ecASkLrzcb3077jd136OcUpNF rpFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DMUM6+jbHKRjwRGxMoutmbDa8e/PjDVsdH94ALmoth8=; b=gPJyiOxB6xIHM4uEiZXyxho6/fZ1L55EyLBV5PJzkhjN/aL6xYhhBRzgIHZ3yJqblt vCcOS9gTrOKMCaAUAI08Q7+M+/kHYLFCLVtkwGxh5/xRWLBl0a9XR7KU2duDuW1dURP1 ocCfz9BaOB+pwg2hMOPEK6KyM7L1ms6ccu7pV75VHZmn985ezPs2HIuxwhLXV4t907Nj WzUvkKtqE27JXyES2em3Cu/90WYkrNB+KgrC4v1BfFgXUJwiy9+NxLRi6ztc/1to2M5m akRzFt4udDyZGEqGff/Y7nx8eY09jnpIM39vht2S/TS7QC1VA23gzcdAT4oEyeQPudeK 0W7A== X-Gm-Message-State: ALyK8tI0RsMqt1reXpR6FU/nyjExcx4YlM7sObDsV/Ez8MLbXrd7+lY+S5UeFrO86Xbc/HDlgyr5/1XJdcVD0g== X-Received: by 10.237.45.98 with SMTP id h89mr4766162qtd.81.1467141016522; Tue, 28 Jun 2016 12:10:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.96.76 with HTTP; Tue, 28 Jun 2016 12:10:15 -0700 (PDT) In-Reply-To: References: <211db59e-9c22-6df4-1f72-66ebbc5095bd@fleshgrinder.com> Date: Tue, 28 Jun 2016 16:10:15 -0300 Message-ID: To: Rasmus Schultz Cc: Marco Pivetta , PHP internals Content-Type: multipart/alternative; boundary=94eb2c124a0420230405365b6309 Subject: Re: [PHP-DEV] [RFC] Simple Annotations From: pedronaroga@gmail.com (Pedro Cordeiro) --94eb2c124a0420230405365b6309 Content-Type: text/plain; charset=UTF-8 > << HttpMethod::post() >> // equivalent to static method-call > HttpMethod::post() > What would this, specifically, do? Would it call HttpMethod::post() when the class gets instantiated and return its return on a ReflectionClass::getAnnotations()? Why is it necessary to be able to evaluate expressions on annotations? I do agree that throwing errors/exceptions when classes are not found is needed (otherwise we wont be able to use value-objects), but evaluating expressions seems a little crazy for me... why should metadata be computed in runtime? --94eb2c124a0420230405365b6309--