[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: Re: A troubling thought - smartmatch reimagined
From: Matthew Persico <matthew.persico () gmail ! com>
Date: 2022-06-27 18:27:23
Message-ID: CAL20dLAbCpXPcRE0oyQRfM2bwgrBqAgMgbbas-bKw4zpn-cf=g () mail ! gmail ! com
[Download RAW message or body]
TL;DR: It's time to stop trying to reinvent "case" in Perl.
Long story:
https://www.reddit.com/r/perl/comments/vkzawl/comment/idyjrbw/?utm_source=share&utm_medium=web2x&context=3
On Sun, Jun 26, 2022 at 12:52 AM Tomasz Konojacki <me@xenu.pl> wrote:
> On Sun, 26 Jun 2022 06:46:58 +0200
> Tomasz Konojacki <me@xenu.pl> wrote:
>
> > Now, to address your "undef" problem. I think your post lacks context.
> > If it was just about "match", it would've been trivial to fix, you could
> > just add "defined { }".
>
> I meant "undef {}". "defined {}", while not completely pointless, would
> be much less useful.
>
--
Matthew O. Persico
[Attachment #3 (text/html)]
<div dir="ltr"><div dir="ltr"><font face="arial, sans-serif"><span \
style="color:rgb(102,102,102);text-align:justify">TL;DR: It's time to stop trying \
to reinvent "case" in Perl.</span><br \
style="color:rgb(102,102,102);text-align:justify"><span \
style="color:rgb(102,102,102);text-align:justify">Long story:</span><br \
style="color:rgb(102,102,102);text-align:justify"><span \
style="color:rgb(102,102,102);text-align:justify"><a \
href="https://www.reddit.com/r/perl/comments/vkzawl/comment/idyjrbw/?utm_source=share& \
amp;utm_medium=web2x&context=3">https://www.reddit.com/r/perl/comments/vkzawl/comm \
ent/idyjrbw/?utm_source=share&utm_medium=web2x&context=3</a></span></font><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 26, 2022 at 12:52 \
AM Tomasz Konojacki <<a href="mailto:me@xenu.pl">me@xenu.pl</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 26 Jun 2022 \
06:46:58 +0200<br> Tomasz Konojacki <<a href="mailto:me@xenu.pl" \
target="_blank">me@xenu.pl</a>> wrote:<br> <br>
> Now, to address your "undef" problem. I think your post lacks \
context.<br> > If it was just about "match", it would've been \
trivial to fix, you could<br> > just add "defined { }".<br>
<br>
I meant "undef {}". "defined {}", while not completely pointless, \
would<br> be much less useful.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature">Matthew O. Persico</div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic