Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63528 invoked from network); 28 Jul 2012 22:13:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2012 22:13:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.220.170 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:33294] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/82-45145-9F364105 for ; Sat, 28 Jul 2012 18:13:14 -0400 Received: by vcbgb30 with SMTP id gb30so4186831vcb.29 for ; Sat, 28 Jul 2012 15:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=QqQ34Ujhu1fMKM+jcKB/NT1wj04crrPLjq3r0eVgeoM=; b=JLTN6EaRoinp/OtlaLOTSxDn9yqTGFq+BZj80N+OskyqZRlMJ3pqKhmMKVCgNCzU7a Q9vD3cH5LfBfEI/d5yjx4PE6EWPSNAumVSjDLtW0wfWWWm7hKqt1BhN1+8Ctd8GQkDPi G7rgkBDiElvDk5L5ZtxHErebZaDAjooCJt2s7eLzvgrscUIMeVL5BHwxF05rhgvQG6x6 64CIU44SUwc3HS1JLBlwEjpmj35NDZxuoQ86Ck14sPBoKGaTJPrm4yuPHpi/PIz13ni4 LYE0Z5ADnNOcEc0JiGZTWp1OIt00NyjB5bnuZsU3q+2+ZiWPczH2E/OJW+dXHdqu1hCM QApw== MIME-Version: 1.0 Received: by 10.52.71.137 with SMTP id v9mr5838769vdu.63.1343513590756; Sat, 28 Jul 2012 15:13:10 -0700 (PDT) Received: by 10.220.117.193 with HTTP; Sat, 28 Jul 2012 15:13:10 -0700 (PDT) Date: Sat, 28 Jul 2012 18:13:10 -0400 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl8LYZbk+7rZE/Pc8O2i9GpqeMlsYK0gf0b+M0fTBtawhOIfH1SYX5TcfyB6isx9JYaHMdF Subject: notes on a couple of RFCs From: rasmus@mindplay.dk (Rasmus Schultz) Is this RFC outdated? https://wiki.php.net/rfc/jsonable We have JsonSerializable in 5.4 - this appears to be essentially the same thing? (Should it be moved from "draft" to "implemented", or should it just be removed? It was not implemented with the names used in this RFC.) I was also looking at the following RFC: https://wiki.php.net/rfc/linecontrol I have often wondered about something similar - although I don't like what's proposed here as far as syntax. We already have syntax for directives - building on that, I would expect to see something like this: declare(file='source.tpl#3'); This would affect error-reporting of all lines following that line. Using the directive block-syntax, this would affect error-reporting only within the block: declare(file='source.tpl#3') { ... } I've been hungry for this feature for many years - it would pave the way for huge improvements in template-engines, AOP frameworks, pre-processors, code-generators, and meta-programming in general... most php-developers shy away from most of these powerful patterns, because there is currently no way to implement "proper" error-reporting for any of these patterns...