[squeak-dev] [Pharo-dev] Pragma keyword / selector / methodSelector
H. Hirzel
hannes.hirzel at gmail.com
Wed Nov 16 14:46:12 UTC 2016
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?
--Hannes
More information about the Squeak-dev
mailing list
|