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

Re: RFC: Multiple-alias syntax for for

Thread Previous | Thread Next
From:
Martijn Lievaart
Date:
June 10, 2021 10:19
Subject:
Re: RFC: Multiple-alias syntax for for
Message ID:
6cff2342-966c-c861-27df-6b36e32d0cf2@rtij.nl

Op 10-06-2021 om 09:28 schreef Nicholas Clark:
> On Thu, Jun 10, 2021 at 01:43:43AM +0200, Nicolas Mendoza wrote:
>> Den 08.06.2021 13:20, skrev Nicholas Clark:
>>> So, the plan for discussing the proposed RFC process was to feed an idea
>>> through it, and see how we get from idea to RFC to implementation.
>>> (Assuming that we don't reject the idea.)
>>>
>>> About two months ago Rik had mentioned to me the idea of implementing this
>>> (currently illegal) syntax to iterate over hashes:
>>>
>>>       for my ($key, $value) (%hash) { ... }
>> I'm sorry if this is the wrong place to comment, but I see several comments
>> about the proposition itself, so here goes:
> No, this is totally the right place to comment.
>
> It's sensible comments like this (particularly comments from people whose
> names I don't recognise) that we'd like to see.
>
>> I really like this, it makes life simpler.
> That was what I thought when I first saw the idea. But I'm not sure if I'm
> biased. :-)
>

FWIW, I love it too. I would use this all the time. Also, it feels so 
perlish, as others already said, how comes this isn't a thing yet.


HTH,

M4



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