in reply to Re^2: The Corinna RFC for getting modern OO into the Perl core is taking shape
in thread The Corinna RFC for getting modern OO into the Perl core is taking shape
Only supporting v1.2.3 triplet semantic versioning.
I wouldn't go as far as to call it a "gratuitous incompatibility" since there are no Corinna classes right now which would break because of this. But I agree with you that having decimals would be good: Semantic versioning can be an obstacle in early Corinna adoption. If I want to migrate an existing old-style OO class to Corinna while keeping the API, I would need to change from decimal to semantic - and, worse, users of the class might need to change their code, too.
No native way to support read/write accessors.
I'm not sure what you're expecting here? Corinna attributes can be declared to create reader and writer methods, for example:
slot $name :reader :writerThis creates a ->name method to read, and a set_name($new_name) method to overwrite the value, much in the style of MooseX::SemiAffordanceAccessor. You can not use the same name for reader and writer, though (which in my opinion is a good thing).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: The Corinna RFC for getting modern OO into the Perl core is taking shape
by Radiola (Monk) on Sep 14, 2021 at 10:26 UTC | |
by Ovid (Cardinal) on Sep 14, 2021 at 15:03 UTC | |
by haj (Vicar) on Sep 14, 2021 at 13:35 UTC |