Re: [Ann] Class meta annotations
Posted by
Marcus Denker-4 on
Sep 26, 2017; 9:28am
URL: https://forum.world.st/Ann-Class-meta-annotations-tp4971966p4972320.html
> On 26 Sep 2017, at 10:45, Damien Pollet <
[hidden email]> wrote:
>
> +1 just call them class annotations. "annotation" itself already means "meta-information"
>
> What are class properties ?
You can say:
Object propertyAt: #hello put: true.
e.g instead of checking if the name starts with a certain substring, we now implement #isObsolete like
this:
isObsolete
"Return true if the receiver is obsolete."
^ self propertyAt: #obsolete ifAbsent: false