[squeak-dev] [Pharo-dev] Pragma keyword / selector / methodSelector
dionisiydk at gmail.com
Wed Nov 16 15:00:24 UTC 2016
You force me to search archives. I hope anybody else does this :).
Here is good answer why pragma instead of annotation:
2016-11-16 15:46 GMT+01:00 H. Hirzel <hannes.hirzel at gmail.com>:
> On 11/15/16, Denis Kudriashov <dionisiydk at gmail.com> wrote:
> > 2016-11-15 21:58 GMT+01:00 Tobias Pape <Das.Linux at gmx.de>:
> >> Here's my 2ct:
> >> 1. Pragmas aren't actually pragmas. They do not instruct the compiler to
> >> do things (_except_ for primitive: and apicall:, but these are now
> >> outliers).
> >> They rather add metadata to a (compiled) method.
> >> 2. The 'thing' (ie, class) should probably be named
> >> MethodAnnotation
> >> 3. We can have the cake and eat it to:
> >> Rename Pragma -> MethodAnnotation.
> >> Make Pragma a new subclass of MethodAnnotation.
> >> Make MethodAnnotation implement
> >> #methodSelector
> >> #annotationSelector (or #selector, if it must be)
> >> Make Pragma implement
> >> #selector
> >> #keywords
> > I remember long discussion about Pragma vs Annotation name where Igor won
> > completely :)). Conclusion was that Pragma is a right name.
> Is there a summary of this discussion available?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev