Implicit Getters and Setters [MAYBE]¶
This has always felt a little clumsy to me in Ruby:
class Foo
attr_accessor :one, :two
def initialize(one, two)
@one = one
@two = two
end
end
The above in Sapphire will be accomplished through a Behavior:
behavior "accessors/automatic" class Foo attr_accessor :one, :two end