On Mon, 16 Feb 2015, Dmitry Stogov wrote:

> hi,
> 
> During discussion of different ways of implementing "Design by Contract" we
> got an idea of using annotations.
> 
> BTW: annotations are useful by their own and may be used for different
> purposes. Support for annotations was proposed long time ago:
> 
> https://wiki.php.net/rfc/annotations
> https://wiki.php.net/rfc/annotations-in-docblock
> https://wiki.php.net/rfc/reflection_doccomment_annotations
> 
> HHVM already implemented similar concept
> 
> http://docs.hhvm.com/manual/en/hack.attributes.php
> 
> I made a quick and dirty PoC that shows how we may implement annotations in
> PHP7 and how powerful they may be :
> https://gist.github.com/dstogov/dbf2a8f46e43719bd2c2

Why didn't you pick the same syntax as hack?

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to