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

Re: Pre-RFC: lazy arrays and hashes (maybe scalars?)

Thread Previous
From:
Ovid
Date:
June 30, 2022 10:21
Subject:
Re: Pre-RFC: lazy arrays and hashes (maybe scalars?)
Message ID:
CA+M4CHtrSKBD7D-+5zwr1CaZqB4h9tfo7PxoLNkDFmzOrPyVDw@mail.gmail.com
On Thu, Jun 30, 2022 at 12:05 PM Darren Duncan <darren@darrenduncan.net>
wrote:

> Are you looking to have Perl match the semantics / feature of Raku's lazy
> lists,
> or go a different way?


A different way. Raku has some great stuff, but its semantics and syntax
are sufficiently different that I don't think it applies.


> Personally I suggest that given how invasive any version
> of this would be, that it would be best instead just be implemented as a
> CPAN
> module as an ordinary object class, rather than being built-in.


https://metacpan.org/pod/Tie::LazyList (doesn't appear popular)


> Or is users not
> having to care whether a list is lazy or eager, by using identical syntax
> to use
> both, important to you? -- Darren Duncan
>

Yes.
Ovid

Thread Previous


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