topaz: (gormy gull)
Tim Pierce ([personal profile] topaz) wrote2007-10-22 04:07 pm
Entry tags:

they actually pay me for this

Highly valuable information I have learned today:

eval { foo }; is permissible syntax.
eval { foo } is not.

I want those six hours of my life back, goddamnit.

I think [livejournal.com profile] omegabeth is right.  This is clearly all because Mercury is in retrograde.

[identity profile] keyne.livejournal.com 2007-10-22 08:13 pm (UTC)(link)
Yer just cruisin' for a bruisin' from our friendly astronomer, aincha?

[identity profile] phornax.livejournal.com 2007-10-22 08:56 pm (UTC)(link)
Oh, he's just being a "typical Scorpio." Interestingly, the Wikipedia entry for Scorpio provided a good yuk:

The individuals born under this sign are thought to be loyal, strong-willed, complex, capable of genius, thoughtful, supportive, protective, generous, intense, humble, quiet, brave, and emotional. Scorpios can also be jealous, stubborn, demanding, grudge-holders, obsessive (especially with sex), secretive, possessive, angry, suspicious, hedonism, and unreliable. Also, Scorpios tend to be suicidal and for good reason.
ext_8707: Taken in front of Carnegie Hall (cigar)

[identity profile] ronebofh.livejournal.com 2007-10-22 09:03 pm (UTC)(link)
> fortune -m SCORPIO
%% (fortunes)
SCORPIO (Oct 23 - Nov 21)
        You are shrewd in business and cannot be trusted.  You will achieve
        the pinnacle of success because of your total lack of ethics.  Most
        Scorpio people are murdered.
%%
SCORPIO (Oct. 23 to Nov. 21)
        Friends abound today, seeking repayment of past loans.  Smile.  Check
        for concealed weapons.  Your natural cheerfulness makes others want
        to throw up.  Knock it off.
%%
SCORPIO (Oct.24 - Nov.21)
        You will receive word today that you are eligible to win a million
        dollars in prizes.  It will be from a magazine trying to get you to
        subscribe, and you're just dumb enough to think you've got a chance
        to win.  You never learn.
I'm a Scorpio, and so is my wife. Rawr.
ext_86356: (2632)

[identity profile] qwrrty.livejournal.com 2007-10-22 09:06 pm (UTC)(link)
But it's all so true.
jss: (badger)

[personal profile] jss 2007-10-22 09:07 pm (UTC)(link)
Scorpios of LimeGerbil, unite!
fraterrisus: A bald man in a tuxedo, grinning. (Default)

[personal profile] fraterrisus 2007-10-22 10:12 pm (UTC)(link)
The individuals born under this sign are thought to be... hedonism

have you met my friend [livejournal.com profile] qwrrty, and his wife the grammar nazi? :)

[identity profile] jacflash.livejournal.com 2007-10-23 12:07 pm (UTC)(link)
Are you saying that [livejournal.com profile] qwrrty is not hedonism?
fraterrisus: A bald man in a tuxedo, grinning. (Default)

[personal profile] fraterrisus 2007-10-23 01:04 pm (UTC)(link)
quite the contrary my lad :)

[identity profile] opadit.livejournal.com 2007-10-22 10:14 pm (UTC)(link)
I have no joke here, I just like saying, "Scorpios can also be hedonism."

I actually don't know

[identity profile] ratatosk.livejournal.com 2007-10-22 08:21 pm (UTC)(link)
Why does everyone always blame Mercury? It's not like you can't usually find all sorts of other things in retrograde at any given point.
ext_8707: Taken in front of Carnegie Hall (wack)

[identity profile] ronebofh.livejournal.com 2007-10-22 09:08 pm (UTC)(link)
In general, Mercury rules thinking and perception (http://www.astrologycom.com/mercret.html), processing and disseminating information and all means of communication, commerce, education and transportation. By extension, Mercury rules people who work in these areas, especially people who work with their minds or their wits: writers and orators, commentators and critics, gossips and spin doctors, teachers, travellers, tricksters and thieves.

Mercury retrograde gives rise to personal misunderstandings; flawed, disrupted, or delayed communications, negotiations and trade; glitches and breakdowns with phones, computers, cars, buses, and trains. And all of these problems usually arise because some crucial piece of information, or component, has gone astray, or awry.

It is therefore not wise to make important decisions while Mercury is retrograde, since it is very likely that these decisions will be clouded by misinformation, poor communication and careless thinking. Mercury is all about mental clarity and the power of the mind, so when Mercury is retrograde, these intellectual characteristics tend to be less acute than usual, as the critical faculties are dimmed. Make sure you pay attention to the small print!
Aren't you sorry you asked?

[identity profile] ratatosk.livejournal.com 2007-10-22 09:14 pm (UTC)(link)
Aren't you sorry you asked?

Actually, no, that was a real answer. :) I will still tease people about Eris being in retrograde if I think _they_ don't know the real answer, though. :P
ext_8707: Taken in front of Carnegie Hall (horse! pie!)

[identity profile] ronebofh.livejournal.com 2007-10-22 09:27 pm (UTC)(link)
The downside is that you could be right!!!1

[identity profile] ratatosk.livejournal.com 2007-10-22 09:31 pm (UTC)(link)
About what? That they don't know the prevailing beliefs about different planets, or about which are in retrograde, or something else? In the past I have laboriously checked first, because I am OCD like that.
ext_8707: Taken in front of Carnegie Hall (teeth)

[identity profile] ronebofh.livejournal.com 2007-10-22 09:34 pm (UTC)(link)
I'd imagine that, with Eris being so new, they don't yet know what they don't know about it, as Donald Rumsfeld might put it.
ckd: (cpu)

[personal profile] ckd 2007-10-22 08:40 pm (UTC)(link)
And yet Perl programmers complain about Python's use of significant whitespace.
ext_86356: (bad wolf)

[identity profile] qwrrty.livejournal.com 2007-10-22 08:44 pm (UTC)(link)
Hey, don't look at *me*. If I had it my way we'd all be working in Lisp.

[identity profile] khedron.livejournal.com 2007-10-22 08:57 pm (UTC)(link)
=)

And heck, if you could Have It Your Way, it might even be a Lisp which specified support in the language for threading, networking, and graphics, instead of leaving it up to the vendor. Where do I sent the check for the Qwrrty Way? ;-)

[identity profile] noeltheone.livejournal.com 2007-10-23 12:45 am (UTC)(link)
(((Because)that would)(be)((so much) better).)

[identity profile] khedron.livejournal.com 2007-10-23 01:27 pm (UTC)(link)
You're doing it wrong. (http://lemonodor.com/archives/2007/10/youre_doing_it_wrong.html)

But at least you balanced your parens. =)

[identity profile] noeltheone.livejournal.com 2007-10-23 02:56 pm (UTC)(link)
Yeah, well, the last time I did anything in Lisp was before dirt, so I just went for the cheap joke.

And of course I balanced my parens. I'd hate to have to trace the bug if I didn't. :-)

[identity profile] khedron.livejournal.com 2007-10-23 05:11 pm (UTC)(link)
Whoa... Lisp predates dirt? That strongly implies that it's older than quartz, silicon, and all possible bases for electronic computing. XKCD was right? (http://xkcd.com/224/)

(And that brings us back around to the topic of the post again, I think.)
jss: (cthulhu)

[personal profile] jss 2007-10-22 08:43 pm (UTC)(link)
What [livejournal.com profile] keyne said.
beowabbit: (Default)

[personal profile] beowabbit 2007-10-22 10:04 pm (UTC)(link)
In other news, one of the students who work here recently discovered that the contact information (not-quite-email-address) in a DNS SOA record is not, in fact, optional.

[identity profile] huaman.livejournal.com 2007-10-22 10:11 pm (UTC)(link)
I've lost that same 6 hours so many times... well, enough that I remember at least 2 of them vividly. And general other missing ; events too. I feel your pain.

[identity profile] omegabeth.livejournal.com 2007-10-23 05:39 pm (UTC)(link)
Just so you know, I was so done with yesterday that I have bent the universe to my will--Mercury shouldn't give you any more trouble.

[identity profile] szasz.livejournal.com 2007-11-01 02:36 pm (UTC)(link)
Arrrgh this takes me back to my dumb arguments in my early CS classes about "statement separators" vs. "statement terminators". My memory is probably not completely accurate, but in PL/I the semicolon ENDED a statement whereas in Pascal it SEPARATED two statements. I think Perl is in that latter camp.
ext_86356: (HTH)

[identity profile] qwrrty.livejournal.com 2007-11-02 04:46 pm (UTC)(link)
That's an interesting way of putting it. I'd never thought about it that way before but I think you're right, in that the last statement in a block generally does not need to have a semicolon after it (this applies to C as well).

But still. Code like if ($foo) { bar } is legitimate with or without a trailing semicolon. Why isn't eval { foo } okay?

I'm sure Tom or Randal would be able to explain why there is a very important semantic distinction between a block in a control statement and a block passed as an argument to a function. As far as I'm concerned they can bite my skinny white ass. TMTOWTDI, indeed.

[identity profile] szasz.livejournal.com 2007-11-02 05:33 pm (UTC)(link)
Hm. At the risk of talking out my ass, I think it's because the semantics of the curly braces in each case are different.

if ($foo) { bar } is a construct; an if statement and a following block of statement(s). Blocks are enclosed by curly braces.

eval { foo }; is a single statement with the block { foo } being the argument to the eval function. Since that block is an argument to eval, it doesn't have any syntactical "identity" as a block in the program itself. The statement needs a semicolon to separate it from the next statement in the program, just as if it had read, say, eval $biteme;.

I'm pretty sure that's right. Perl has always been big on interpreting language elements in very different ways in different contexts, which is really confusing sometimes and is one of my biggest beefs with the language.
ext_86356: (bad wolf)

[identity profile] qwrrty.livejournal.com 2007-11-02 05:38 pm (UTC)(link)
Yeah, that's more or less what I was guessing too, so you're probably right. But my beef with it here is that Perl's syntax idiosyncrasies are usually structured (to hear it from the Perl proselytizers) to make the language more accessible to the programmers and to make the syntax get in your way less.

That's fine as far as it goes, but this is one big glaring counterexample.

I suppose that means I should submit it as a bug. Maybe if I get sufficiently motivated. :-)

[identity profile] szasz.livejournal.com 2007-11-02 05:53 pm (UTC)(link)
You have far more motivation than I to even think about reporting established parts of the Perl syntax diagram as "bugs," my friend. :)