Perlmonks CB60

Rendered at 2010-09-04 02:10:54 UTC

to bottom

Xiong    2010-09-04 01:55:08 UTC
Oh, before you go, Good Sabbath.
Xiong    2010-09-04 01:54:47 UTC
Maybe if I make some real progress on my current noodle first, yitzchak.
tye    2010-09-04 01:46:38 UTC
(I'm also surprised at the assertion that most of them are already using UTC)
yitzchak    2010-09-04 01:42:54 UTC
I assumed
tye    2010-09-04 01:42:24 UTC
I wouldn't remove leap seconds. I just don't think most computers should be using UTC.
yitzchak    2010-09-04 01:40:59 UTC
with an example, expected output, and actual output
Xiong    2010-09-04 01:40:19 UTC
Can I boil the bug report down to: 'Feature given does not return a usable value.' --?
Xiong    2010-09-04 01:39:19 UTC
Or, I should say more precisely, if such a warning were not raised because the outer assignment meant, hey, it's not void.
yitzchak    2010-09-04 01:38:52 UTC
or eval, or a subroutine, or if, etc; plenty of places where it's return value would be usable if it had one
Xiong    2010-09-04 01:38:30 UTC
Um, it might be nice if warnings also were suppressed by default within such a construct, of the useless use in void context.
Xiong    2010-09-04 01:37:39 UTC
My understanding of the way the rest of Perl works is that the given/when structure should be wrapped in a do{}.
tye    2010-09-04 01:37:04 UTC
(because clock ticks don't have to line up with the wall clock)
tye    2010-09-04 01:36:41 UTC
I was surprised to read that most computer systems use a time scale that includes leap seconds. That's stupid. Only astronomers should care. Even high-speed networking gear doesn't need to.
Xiong    2010-09-04 01:36:21 UTC
Yes, we can't be the only two who think this.
yitzchak    2010-09-04 01:33:05 UTC
you never know where you'll pick up allies
Xiong    2010-09-04 01:31:58 UTC
You and me against the world, eh?
Xiong    2010-09-04 01:30:47 UTC
I do think that making an assignment -- making various assignments when, always to the same variable -- is a likely use of switch.
Xiong    2010-09-04 01:29:41 UTC
Mm. Dunno if I know enough to do that, yitchak. Anyway, I'm not real happy with the existing syntax. And now, I think it's too late to change that.
yitzchak    2010-09-04 01:28:55 UTC
I think the behavior is unhelpful, if not outright buggy
Xiong    2010-09-04 01:28:32 UTC
Or, I can just do what I've been doing and stuff everything into a hash.
yitzchak    2010-09-04 01:28:17 UTC
Xiong in brief. the issue could use a champion. file a bug and see what comes of it.
yitzchak    2010-09-04 01:27:10 UTC
the anti-leap-second forces are still at work, trying to screw things up even more
Xiong    2010-09-04 01:26:28 UTC
So, it's cascaded ternaries && too bad.
Intrepid    2010-09-04 01:26:02 UTC
It's getting dark so much earlier now than 3 weeks ago, it feels much later than it is.
Intrepid    2010-09-04 01:25:27 UTC
Duh, thanks for reminding me. I live on a spherical body in space with a rotation around our stellar parent. Duh. Sorry for the distracting idiocy ;-/
Xiong    2010-09-04 01:24:22 UTC
Maybe not yet local sunset?
yitzchak    2010-09-04 01:24:17 UTC
sundown here is in about an hour and a half
Intrepid    2010-09-04 01:23:10 UTC
Ermm, have you changed your observances yitzchak? I *do* *not* mean to make a thing out of it, but I just realized that I am surprised that you are in the cb tonight.
yitzchak    2010-09-04 01:22:58 UTC
which returns nothing
Xiong    2010-09-04 01:22:24 UTC
... which returns undef, eh?
Intrepid    2010-09-04 01:21:51 UTC
Corned beef and cole slaw on a toasted rye bread – that was my lunch today (from Marco's on Hertel Ave). Delicious ;-)
yitzchak    2010-09-04 01:19:48 UTC
Xiong unfortunately, the last expression in each when block is the implicit break
yitzchak    2010-09-04 01:17:56 UTC
hi, I
Xiong    2010-09-04 01:17:55 UTC
I may be a bit fuzzy here. But I thought the do{} would fix it.
yitzchak    2010-09-04 01:17:53 UTC
yes, given breaks that rule. :(
Intrepid    2010-09-04 01:17:12 UTC
Howdy.
Xiong    2010-09-04 01:17:03 UTC
My understanding is that a statement returns a value: the last value evaluated.
yitzchak    2010-09-04 01:14:54 UTC
I wish you would. I was disappointed that it worked that way.
Xiong    2010-09-04 01:14:52 UTC
I might as well use cascaded ternaries.
Xiong    2010-09-04 01:14:03 UTC
yitzchak Can I fix this? Otherwise all the when-blocks will be assignments to the same variable. Verbose.
yitzchak    2010-09-04 01:11:13 UTC
it's a statement. it doesn't have a return value.

to top


Preferred Domain for Perlmonks:
Show messages with the
Timezone:
Format:    
Users to ignore:


Version 0.0302 (Test)
Coding By: demerphq
Hosted by: demerphq