Re: [RFC] Simple Annotations

From: Date: Mon, 16 May 2016 10:41:48 +0000
Subject: Re: [RFC] Simple Annotations
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-93355@lists.php.net to get a copy of this message
On 5/13/2016 2:57 PM, Davey Shafik wrote: > 2) I like the idea of Hacks memoize for example, how do you see those being > implemented? Or don't you? > I wrote it in the /attribute grammar/ thread and I write it here again. Stuff like memoize should be implemented as keywords as part of the language and not via annotations. memoized function f() {} Same goes for deprecated: deprecated memoized function f() {} Or other special effects: deprecated inlined memoized function f() {} These things are not meta-data for userland, they are meta-data for PHP and should be part of, well, PHP. -- Richard "Fleshgrinder" Fussenegger

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#93355) next »