rfc:simple-annotations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:simple-annotations [2016/05/13 11:15] – mindplay | rfc:simple-annotations [2016/05/14 19:38] – mindplay | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Simple Annotations ====== | ====== PHP RFC: Simple Annotations ====== | ||
- | * Version: 0.1 | + | * Version: 0.3 |
* Date: 2016-05-13 | * Date: 2016-05-13 | ||
* Author: Rasmus Schultz, rasmus@mindplay.dk | * Author: Rasmus Schultz, rasmus@mindplay.dk | ||
Line 83: | Line 83: | ||
==== Annotations are Context-free ==== | ==== Annotations are Context-free ==== | ||
- | By design, there is no access to variables in the parent class, file or global scope, no '' | + | By design, |
Annotations work consistently regardless of which source element they are applied to, and may be evaluated without first creating an object instance. | Annotations work consistently regardless of which source element they are applied to, and may be evaluated without first creating an object instance. | ||
- | |||
- | You can think of an annotation ''<< | ||
- | |||
- | function () { return expression(); | ||
Annotations that do require context should explicitly ask for that context - for example, you could use an anonymous function, a '' | Annotations that do require context should explicitly ask for that context - for example, you could use an anonymous function, a '' | ||
Line 147: | Line 143: | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
- | TODO file-level | + | A future RFC might include certain system |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== |
rfc/simple-annotations.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1