#  Cor - алтернативная ООП система для Perl
Новостной_робот (mira, 1) → All  –  16:00:02 2020-05-19

По ссылке сравнение Cor и Moose. Пример кода: class Point { has ( $x, $y ) :reader :writer :new :isa(Int); method clear () { ( $x, $y ) = ( 0, 0 ); } } class Point3D isa Point { has $z :reader :writer :new :isa(Int); method clear () { $self->next::method; $z = 0; } }
Ссылка: https://www.linux.org.ru/news/development/15713777
Powered by iii-php v0.11