strredwolf: (Default)
[personal profile] strredwolf
I miss Perl's unless control structure.  Perl has better "english" making things readable.  It's so good, you can do Perl Poetry.

Ugh.  PHP needs to do better.

Date: 2005-09-13 11:51 pm (UTC)
From: [identity profile] darthparadox.livejournal.com
read() or die;

Date: 2005-09-14 04:52 pm (UTC)
From: [identity profile] kazriko.livejournal.com
Good show, bad programming construct. ;)

Date: 2005-09-14 02:34 am (UTC)
From: [identity profile] zimzat.livejournal.com
*does a quick search*

unless ($a == $b) is the same as if ($a != $b)

ugh. That's just lazy.

Date: 2005-09-14 04:47 pm (UTC)
From: [identity profile] eidolos.livejournal.com
Sure, until you get to expressions that are far more complex than $a == $b.

Date: 2005-09-14 04:52 pm (UTC)
From: [identity profile] zimzat.livejournal.com
Care to give an example of such an expression?

Date: 2005-09-14 04:53 pm (UTC)
From: [identity profile] kazriko.livejournal.com
Anyone who's been through computer architecture should be able to handle a simple logical negation by hand... besides, you can just wrap the whole mess up and throw a Not in front of it if you need to.

Date: 2005-09-14 05:03 pm (UTC)
From: [identity profile] strredwolf.livejournal.com
While all very true, Perl programmers know how to be lazy (it's one of their virtures). So why would you want to do an if(!(expression)) when you can say unless(expression)? Or, in English, "If not this, do that" compared to "unless this happened, do that."


Date: 2005-09-14 05:10 pm (UTC)
From: [identity profile] kazriko.livejournal.com
While all very true, Perl programmers know how to be lazy (it's one of their virtures).

And that's another in a long list of reasons Perl is a WORN language. (Write once read never)

Profile

strredwolf: (Default)
STrRedWolf

May 2020

S M T W T F S
     12
3456789
10111213141516
1718 1920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 8th, 2025 12:56 am
Powered by Dreamwidth Studios