[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&#39;s time to stop trying \
to reinvent &quot;case&quot; 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&amp;context=3">https://www.reddit.com/r/perl/comments/vkzawl/comm \
ent/idyjrbw/?utm_source=share&amp;utm_medium=web2x&amp;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 &lt;<a href="mailto:me@xenu.pl">me@xenu.pl</a>&gt; \
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 &lt;<a href="mailto:me@xenu.pl" \
target="_blank">me@xenu.pl</a>&gt; wrote:<br> <br>
&gt; Now, to address your &quot;undef&quot; problem. I think your post lacks \
context.<br> &gt; If it was just about &quot;match&quot;, it would&#39;ve been \
trivial to fix, you could<br> &gt; just add &quot;defined { }&quot;.<br>
<br>
I meant &quot;undef {}&quot;. &quot;defined {}&quot;, 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