Excellent initiative.

In Moose we get

    propertyNamed: propertyName
    propertyNamed: name ifAbsentPut: value
    propertyNamed: propertyName ifNil: aBlock
    propertyNamed: name put: value

So which one do we take?
Stef

Le 15/8/15 10:24, Marcus Denker a écrit :
Hi,

I am now adding a property API to Global/Class Variables and Instance Variables 
(aka Slots).

When looking at the other property APIs, we have 4 different conventions:

1) CompiledMethod and Behavior:

        propertyValueAt:

2) RB AST Nodes:
        propertyAt:

3) Ring:
        annotationNamed:
                
and (4) Morphic uses:
        valueOfProperty:
        
        
I would like to unify 1-3 as this is all the same use case: attaching meta data 
to the
structural model.

I propose to unify the API to the same as the RB AST: just #propertyAt:. 
Morphic we should
not touch...

        Marcus



Reply via email to