Search Discussions
-
Hi, Suppose I'm writing a file browser, with a pane on the left to display the filesystem hierarchy, and a frame on the right to preview the file. Suppose I have a convenience function, preview_file ...
Yuval Kogman
Sep 25, 2005 at 2:28 pm
Oct 8, 2005 at 3:28 am -
Hi, quick questions: my $pair = (a = 42); say ~$pair; # "a\t42"? "a\t42\n"? "a 42"? say +$pair; # 0 (pairs aren't numbers)? # 42? # 0 ("a" is not a number)? # 0 (~$pair can't be used as a number)? ...
Ingo Blechschmidt
Sep 21, 2005 at 2:58 pm
Sep 26, 2005 at 8:42 am -
33
\(...)?
Hi, # Perl 5 my @array_of_references = \($foo, $bar, $baz); print 0+@array_of_references; # prints 3 print ${ $array_of_references[1] }; # prints $bar # Perl 6 my @array = \($foo, $bar, $baz); say ...Ingo Blechschmidt
Sep 6, 2005 at 5:50 pm
Sep 21, 2005 at 7:02 pm -
Hi, multi foo ($a) {...} multi foo ($a, $b) {...} say &foo.arity; # die? warn and return 0? warn and return undef? return 1|2? --Ingo -- Linux, the choice of a GNU | There are no answers, only ...
Ingo Blechschmidt
Sep 2, 2005 at 4:02 pm
Sep 8, 2005 at 2:32 am -
HaloO, I'm still contemplating how to get rid of the :: in the ternary and make :: unequivocally available for a type sigil and as a binary infix for symbol lookup. Here's a possible solution: 1) ?? ...
Thomas Sandlass
Sep 5, 2005 at 12:39 pm
Sep 8, 2005 at 11:18 pm -
Hm, I'm being called upon now. Well, then I start to ask questions like: for 1..10 - ?$a, $b, ?$c, $d, ?$e {...} Which simply doesn't make any sense to me. Also, figuring out such things (as is the ...
Luke Palmer
Sep 30, 2005 at 5:21 am
Oct 4, 2005 at 12:50 am -
The recent thread on Expectuations brought back to mind something I've been thinking for a while. In short, I propose that "use fatal" be on by default, and that "err" be turned into syntactic sugar ...
Adam D. Lopresto
Sep 28, 2005 at 4:47 pm
Oct 18, 2005 at 11:55 am -
If I want to parse a language that is sensitive to whitespace indentation (e.g. Python, Haskell), how do I do it using P6 rules/grammars? The way I'd usually handle it is to have a lexer that ...
Dave Whipp
Sep 8, 2005 at 3:37 pm
Sep 9, 2005 at 12:59 pm -
Today on #perl6 I complained about the fact that this is always inelegant: if ($condition) { pre } unconditional midsection; if ($condition) { post } Either you put the condition in a boolean var and ...
Yuval Kogman
Sep 20, 2005 at 5:33 pm
Sep 22, 2005 at 11:04 am -
Every time I've desired a feature for Perl6 it has turned out that either it was already planned to be there or I have been given good resons why it would have been better not be there. Now in ...
Michele Dondi
Sep 21, 2005 at 2:27 pm
Sep 26, 2005 at 6:37 pm -
Hey all, I recently added Package and Module into the MetaModel (2.0) so that Package is an Object Module is a Package Class is a Module as mentioned here ...
Stevan Little
Sep 6, 2005 at 6:05 pm
Sep 9, 2005 at 3:53 pm -
hcchien raised the following question on #perl6[1]: If I want to loop through a nine-element array three elements at a time, I do my @a = 1..9; for @a - $x, $y, $z { say $x } But what if I don't care ...
Carl Mäsak
Sep 22, 2005 at 6:44 am
Oct 16, 2005 at 11:27 pm -
Imagine you're writing an implementation of the unix "uniq" function: my $prev; for grep {defined} @in - $x { print $x unless defined $prev && $x eq $prev; $prev = $x; } This feels clumsy. $prev ...
Dave Whipp
Sep 29, 2005 at 4:41 pm
Sep 30, 2005 at 4:47 pm -
Think about adding \& to the replacement part of a s///. As in sed, the & means the whole match. Then one can do s/$search/*\&*/go in stead of s/($search)/*\1*/go and there needs to be no $1 variable ...
Ruud H.G. van Tol
Sep 26, 2005 at 7:35 pm
Sep 30, 2005 at 3:58 pm -
We can do better than equivalence testing for colors. Instead, try to match. Surely a *smart* match operator really is smart? $color ~~ '#FF00FF' == $color ~~ 'magenta' == $color ~~ [ 255, 0, 255 ] ...
Juerd
Sep 25, 2005 at 7:35 pm
Sep 27, 2005 at 7:40 am -
Hmm... Making up these subjects is fun =) Anywho... Since type inferrencing is going to make into Perl 6, and allomorphism is very richly supported by the type system, i'm wondering on the nature of ...
Yuval Kogman
Sep 25, 2005 at 5:29 pm
Sep 27, 2005 at 1:07 am -
Hi, please point your browser to "http://nothingmuch.woobling.org/compilation_of_circular_prelude." ~ any(<graffle vdx pdf png jpg ).pick; My proposition: 1. *the* perl 6 compiler should ship a ...
Yuval Kogman
Sep 12, 2005 at 10:16 am
Sep 15, 2005 at 1:19 am -
Whenever possible, object should have useful numeric and string representations. These are generally lossy, but this is not a problem, because a scalar stays a scalar even after being used in a ...
Juerd
Sep 26, 2005 at 12:24 am
Sep 26, 2005 at 10:51 am -
Hello again. In my never ending quest to implement the Perl 6 object model, I have started drawing pictures. Here is the latest version: http://svn.openfoundry.org/pugs/perl5/Perl6-MetaModel2.0/docs/ ...
Stevan Little
Sep 12, 2005 at 7:12 pm
Sep 21, 2005 at 3:27 pm -
Hi, my $arrayref = <a b c ; for @$arrayref {...}; # loop body executed three times, of course for ($arrayref,) {...}; # loop body executed only one time for ($arrayref) {...}; # loop body executed ...
Ingo Blechschmidt
Sep 1, 2005 at 6:33 pm
Sep 2, 2005 at 7:44 pm -
The Perl 6 Summary for the week ending 2005-09-25 Hello all. It's another Monday afternoon, which means I'm writing another summary. There's no cricket to distract me this week, so I'm letting iTunes ...
The Perl 6 Summarizer
Sep 26, 2005 at 5:12 pm
Sep 27, 2005 at 11:55 am -
Hi all, After some thinking it occured to me that the current way of defining .chars, .bytes and .elems (and whatever else there are) doesn't make any sense to me. In pugs at least they currently ...
Wolverian
Sep 24, 2005 at 10:45 am
Sep 26, 2005 at 5:21 pm -
One thing that is extraordinarily hard to do with the facilities we have today is finding the responsive optimum between laziness and eagerness. Let's use an example. WWW::Mechanize comes with a nice ...
Yuval Kogman
Sep 19, 2005 at 12:18 pm
Sep 21, 2005 at 7:25 am -
Okay, due to some discussion on #perl6, I'll assume that the reason my fmap proposal was Warnocked is because a fair number of people didn't understand it. Also, for the people who did understand, ...
Luke Palmer
Sep 19, 2005 at 4:36 am
Sep 21, 2005 at 1:34 am -
I was asked to { Verb 'p6l' } the idea of types providing context, and well, here it is. (We got at these thoughts from a discussion of a hypothetic lexical pragma to disable automatic coercion, ...
Juerd
Sep 14, 2005 at 9:38 pm
Sep 15, 2005 at 3:19 am -
3
no 6;
I just commited into bleadperl a patch that implements this : $ ./perl -e 'no 5' Perls since v5.0.0 too modern--this is v5.9.3, stopped at -e line 1. BEGIN failed--compilation aborted at -e line 1. ...Rafael Garcia-Suarez
Sep 1, 2005 at 4:27 pm
Sep 11, 2005 at 10:24 am -
Are "item context" and "slurpy context" official terms yet? (Note that "official" is temporary, not permament, and has nothing to do with things being set in stone.) If so, then are the keywords for ...
Juerd
Sep 9, 2005 at 10:36 pm
Sep 10, 2005 at 12:27 am -
Here's a good Perl 6 final exam question: Spot the mistake (hint: it's not in the math): module Complex; sub i() is export { Complex.new(0,1) } multi sub infix:<+ (Complex $left, Complex $right) is ...
Luke Palmer
Sep 4, 2005 at 7:55 am
Sep 5, 2005 at 9:53 am -
Both recently discussed situations with blocks can be solved by introducing a way to leave the current block and resume it elsewhere. I'll demonstrate it assuming there is a pause/cont combination. ...
Juerd
Sep 22, 2005 at 11:55 am
Sep 22, 2005 at 9:01 pm -
Hello all. I have some questions about how Roles will behave in certain instances, and when/where/what $?ROLE should be bound too. 1) Given this example, where 'bar' is a method stub (no ...
Stevan Little
Sep 11, 2005 at 12:48 am
Sep 11, 2005 at 2:02 pm -
I might have missed this somewhere in the documentation, but is Perl 6 going to have any documented notion of things like sequence points, undefined behaviour, etc? Is it going to mandate that ...
Nicholas Clark
Sep 10, 2005 at 11:22 am
Sep 19, 2005 at 2:36 am -
Hi, # Should this work? say (a = 1, b = 2)<b ; # 2 or error? # Similarily: my @array = (a = 1, b = 2); say @array<b ; my $arrayref = [ a = 1, b = 2 ]; say $arrayref<b ; FWIW, I think accessing arrays ...
Ingo Blechschmidt
Sep 9, 2005 at 6:09 pm
Sep 9, 2005 at 9:33 pm -
Pugs currently implements &infix:<!! as an ugly version of the &infix:<nor operator. Are these in the spec? If so, how does !! interact with the second part of the new ??!! replacement for ??:: ? -- ...
Benjamin Smith
Sep 8, 2005 at 3:06 pm
Sep 8, 2005 at 5:04 pm -
Hi, quick questions: constant pi = 3; # works # Is &pi package- or lexically-scoped? our constant pi = 3; # legal? my constant pi = 3; # legal? This is consistent with "sub foo", "our sub foo", and ...
Ingo Blechschmidt
Sep 5, 2005 at 9:59 pm
Sep 6, 2005 at 2:48 am -
Folks, I recently needed to write a series of codes on lambda calculus in perl. As MJD has shown Perl 5 can handle lambda calculus but I am beginning to get tired of whole bunch of 'my $x = shift' ...
Dan Kogai
Sep 5, 2005 at 3:35 am
Sep 5, 2005 at 6:11 am -
The first entry in my new weekly "Perl etc." O'Reilly blog is up: http://www.oreillynet.com/pub/wlg/7928 When I mentioned it on #perl6, nothingmuch suggested I post to p6l as well. So here you go. ...
Geoffrey Broadwell
Sep 29, 2005 at 1:24 am
Sep 29, 2005 at 1:24 am -
We've had several discussions of .chars and .elems, and I said something about objects in certain contexts. In the discussion about objects, I left item and list context out, because in those ...
Juerd
Sep 26, 2005 at 3:40 pm
Sep 26, 2005 at 3:40 pm -
I thought we'd switched to a Monday deadline for the summary and a Sunday night roll over. I just noticed your last summary ended on a Monday night. -- Piers Cawley <pdcawley@bofh.org.uk ...
The Perl 6 Summarizer
Sep 26, 2005 at 10:30 am
Sep 26, 2005 at 10:30 am -
Perl 6 Summary for 2005-09-12 through 2005-09-19 All~ Welcome to another Perl 6 Summary, this time brought to you with a shorter pause (::grumble:: $WORK ::grumble::) and assisted by cookies. Perl 6 ...
Matt Fowles
Sep 20, 2005 at 12:25 am
Sep 20, 2005 at 12:25 am -
HaloO, I'm still trying to understand the concept of context in Perl6 from a typing perspective. My current interpretation let me to coin three levels of typing in Perl6: syntactic, static and ...
Thomas Sandlass
Sep 19, 2005 at 7:47 pm
Sep 19, 2005 at 7:47 pm -
The Perl 6 Summary from 2005-08-24 to 2005-09-11 It's been a while hasn't it? We'll start as usual with perl6-compiler This week in perl6-compiler Changed "??::" to "??!!" in Pugs Following ...
The Perl 6 Summarizer
Sep 12, 2005 at 4:18 pm
Sep 12, 2005 at 4:18 pm -
I think we should generalize the hyper stuff a little bit more. I want hyper operators serve as "fmap", or "functor map", rather than just list. This is a popular concept, and a pretty obvious ...
Luke Palmer
Sep 10, 2005 at 10:37 pm
Sep 10, 2005 at 10:37 pm -
= WWW::Kontent 0.02 I am happy to announce the release of WWW::Kontent 0.02: File: $CPAN/authors/id/B/BR/BRENTDAX/WWW-Kontent-0.02.tar.gz Size: 62121 bytes MD5: 513018f0f2f8a0533a79d0b642323f2b ...
Brent 'Dax' Royal-Gordon
Sep 2, 2005 at 12:38 am
Sep 2, 2005 at 12:38 am
Group Overview
group | perl6-language |
categories | perl |
discussions | 44 |
posts | 338 |
users | 58 |
website | perl6.org |
58 users for September 2005
Archives
- May 2016 (16)
- April 2016 (4)
- March 2016 (6)
- February 2016 (20)
- January 2016 (28)
- December 2015 (20)
- November 2015 (12)
- October 2015 (51)
- September 2015 (35)
- April 2015 (15)
- March 2015 (28)
- February 2015 (35)
- January 2015 (49)
- December 2014 (24)
- November 2014 (18)
- October 2014 (43)
- September 2014 (82)
- August 2014 (58)
- July 2014 (16)
- June 2014 (28)
- May 2014 (63)
- April 2014 (53)
- March 2014 (53)
- February 2014 (21)
- January 2014 (19)
- December 2013 (48)
- November 2013 (110)
- October 2013 (35)
- September 2013 (31)
- August 2013 (40)
- July 2013 (48)
- June 2013 (53)
- May 2013 (39)
- April 2013 (20)
- March 2013 (31)
- February 2013 (22)
- January 2013 (15)
- December 2012 (6)
- November 2012 (10)
- October 2012 (12)
- September 2012 (25)
- August 2012 (16)
- July 2012 (45)
- June 2012 (38)
- May 2012 (35)
- April 2012 (61)
- March 2012 (68)
- February 2012 (39)
- January 2012 (25)
- December 2011 (15)
- November 2011 (12)
- October 2011 (13)
- September 2011 (24)
- August 2011 (62)
- July 2011 (31)
- June 2011 (29)
- May 2011 (17)
- April 2011 (5)
- March 2011 (25)
- February 2011 (22)
- January 2011 (20)
- December 2010 (25)
- November 2010 (124)
- October 2010 (101)
- September 2010 (63)
- August 2010 (104)
- July 2010 (219)
- June 2010 (91)
- May 2010 (110)
- April 2010 (171)
- March 2010 (152)
- February 2010 (154)
- January 2010 (65)
- December 2009 (87)
- November 2009 (89)
- October 2009 (169)
- September 2009 (173)
- August 2009 (324)
- July 2009 (157)
- June 2009 (158)
- May 2009 (415)
- April 2009 (128)
- March 2009 (331)
- February 2009 (457)
- January 2009 (306)
- December 2008 (270)
- November 2008 (130)
- October 2008 (110)
- September 2008 (188)
- August 2008 (175)
- July 2008 (70)
- June 2008 (125)
- May 2008 (204)
- April 2008 (425)
- March 2008 (141)
- February 2008 (86)
- January 2008 (140)
- December 2007 (153)
- November 2007 (53)
- October 2007 (19)
- September 2007 (69)
- August 2007 (22)
- July 2007 (22)
- June 2007 (239)
- May 2007 (164)
- April 2007 (106)
- March 2007 (171)
- February 2007 (166)
- January 2007 (175)
- December 2006 (69)
- November 2006 (122)
- October 2006 (301)
- September 2006 (306)
- August 2006 (329)
- July 2006 (183)
- June 2006 (113)
- May 2006 (239)
- April 2006 (314)
- March 2006 (90)
- February 2006 (183)
- January 2006 (193)
- December 2005 (196)
- November 2005 (307)
- October 2005 (613)
- September 2005 (338)
- August 2005 (412)
- July 2005 (505)
- June 2005 (410)
- May 2005 (913)
- April 2005 (635)
- March 2005 (640)
- February 2005 (440)
- January 2005 (72)
- December 2004 (249)
- November 2004 (151)
- October 2004 (34)
- September 2004 (290)
- August 2004 (207)
- July 2004 (335)
- June 2004 (188)
- May 2004 (172)
- April 2004 (403)
- March 2004 (217)
- February 2004 (221)
- January 2004 (180)
- December 2003 (166)
- November 2003 (193)
- October 2003 (46)
- September 2003 (104)
- August 2003 (100)
- July 2003 (78)
- June 2003 (106)
- May 2003 (306)
- April 2003 (804)
- March 2003 (523)
- February 2003 (137)
- January 2003 (635)
- December 2002 (425)
- November 2002 (570)
- October 2002 (837)
- September 2002 (447)
- August 2002 (385)
- July 2002 (238)
- June 2002 (187)
- May 2002 (215)
- April 2002 (493)
- March 2002 (72)
- February 2002 (80)
- January 2002 (290)
- December 2001 (34)
- November 2001 (33)
- October 2001 (417)
- September 2001 (210)
- August 2001 (185)
- July 2001 (277)
- June 2001 (290)
- May 2001 (638)
- April 2001 (503)
- March 2001 (186)
- February 2001 (595)
- January 2001 (151)
- December 2000 (28)
- November 2000 (6)
- October 2000 (307)
- September 2000 (1,508)
- August 2000 (3,476)