Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

more new perl6 stuff

Name: Anonymous 2013-02-13 5:41

perlgeek.de/blog-en/perl-6/2013-pattern-matching.html

Name: Perlmind 2013-02-13 9:29

Name: Anonymous 2013-02-13 9:34

>>2
Mr Murray, can AI MIND pass the Turing test?

Name: AI_Mind_Is_Not_Yet_Ready 2013-02-13 9:58

Top News Headlines

- 2 Maids Triggered the End for Dorner
- Syrian Rebels' New Cash Source: Stolen...
- Pope: I'm Leaving for 'Good of the...
- Rubio's Water Gulp Goes Viral
- Remains Found in Dorner Cabin

Name: Anonymous 2013-02-13 10:07

>>4
Will it ever be ready?

Name: Anonymous 2013-02-13 10:10

If you ever think that you're not a good programmer, just remember Mentifex and his ass face.

Name: Anonymous 2013-02-13 21:34

>>2
A great and insidious evil perpetrated by EXPERT PROGRAMMERS

Name: Yuri 2013-02-13 23:20

I visited that page... and i saw this in the comments:

"This reminds me of a feature in lisp. I think it's call structured binds"

Can a Lisper explain me what that means????

Name: Anonymous 2013-02-14 6:19

It's called destructuring bind and here's how it works in FIOC:

>>> stuff = [1, [2, (3, 4)], [5]]
>>> a, (b, c), [d] = stuff
>>> print a, b, c, d
1 2 (3, 4) 5

Note that tuples and lists can be freely mixed, on the LHS it doesn't matter which you use because no tuples or lists are actually created, that's just syntax, (but lists are sort of nicer because you don't have to deal with Python's (x,) wart), on the RHS any sequence-like type will do.

Name: Anonymous 2013-02-14 7:45

>>9
It's only called destructuring bind in Python.
Perl's is type-safe.

Name: Anonymous 2013-02-14 9:42

>>10
I have never heard sequence unpacking referred to as ``destructuring bind'' in Python.

Name: Anonymous 2013-02-14 9:47

>>10
( ≖‿≖)

Name: Anonymous 2013-02-14 9:56

>>11
Except here, where it's full of Lispers.

>>10
It's okay, we know.

Name: Anonymous 2013-02-15 9:45

i washed my anus today. it felt great

Don't change these.
Name: Email:
Entire Thread Thread List