develooper Front page | perl.perl5.porters | Postings from September 2022

Re: Preview reviews / comments on feature-class branch

Thread Previous | Thread Next
From:
Dagfinn Ilmari Mannsåker
Date:
September 28, 2022 09:55
Subject:
Re: Preview reviews / comments on feature-class branch
Message ID:
87bkqzlt5z.fsf@wibble.ilmari.org
Yuki Kimoto <kimoto.yuki@gmail.com> writes:

> 2022年9月28日(水) 2:12 Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>:
>
>> TL;DR - please help review this large work ahead of PR-time, to avoid
>>   surprises later on and make the process run smoother
>>   (or explicitly opt-out)
[…]
> Before proceeding, I would like to discuss how to use the class
> and method syntax in existing source codes.

What is there to discuss?  Just make sure you don't have functions
called `class`, `field` or `method` that the new keywords would conflict
with, add `use feature 'class';` and use it.

Existing code that just uses the classes and objects doesn't need to
know or care whether they're implemented with the `class` feature, some
other object system or manually, as long as the public API stays the
same.

- ilmari
    

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About