Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The impoliteness of overriding methods.
Here is one of the examples in Perl/Moose:
package GameObject { use Moose; has ['x', 'y'] => (is => 'rw', isa => 'Num'); sub render { my ($self, $renderer) = @_; $renderer->set_transform( $self->x, $self->y ); inner; } } package ScaryMonster { use Moose; extends 'GameObject'; augment render => sub { my ($self, $renderer) = @_; $renderer->draw_image(Images->scary_monster); }; }
- https://metacpan.org/module/DOY/Moose-2.0604/lib/Moose/Manua...
- https://metacpan.org/module/DOY/Moose-2.0604/lib/Moose/Cookb...
There are no comments on this comment yet.
Here is one of the examples in Perl/Moose:
refs:- https://metacpan.org/module/DOY/Moose-2.0604/lib/Moose/Manua...
- https://metacpan.org/module/DOY/Moose-2.0604/lib/Moose/Cookb...