FAQ

Search Discussions

44 discussions - 338 posts

  • 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 KogmanYuval 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 BlechschmidtIngo Blechschmidt
    Sep 21, 2005 at 2:58 pm
    Sep 26, 2005 at 8:42 am
  • 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 BlechschmidtIngo 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 BlechschmidtIngo 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 SandlassThomas 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 PalmerLuke 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. LoprestoAdam 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 WhippDave 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 KogmanYuval 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 DondiMichele 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 LittleStevan 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äsakCarl 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 WhippDave 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 TolRuud 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 ] ...
    JuerdJuerd
    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 KogmanYuval 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 KogmanYuval 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 ...
    JuerdJuerd
    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 LittleStevan 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 BlechschmidtIngo 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 SummarizerThe 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 ...
    WolverianWolverian
    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 KogmanYuval 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 PalmerLuke 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, ...
    JuerdJuerd
    Sep 14, 2005 at 9:38 pm
    Sep 15, 2005 at 3:19 am
  • 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-SuarezRafael 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 ...
    JuerdJuerd
    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 PalmerLuke Palmer
    Sep 4, 2005 at 7:55 am
    Sep 5, 2005 at 9:53 am
  • Hashes are full of convenience, and Huffman would be proud: %hash.keys %hash .key %hash.values %hash .value %hash.kv zip(%hash.keys, %hash.values) One thing occurred to me: if hashes are worth all ...
    JuerdJuerd
    Sep 24, 2005 at 1:11 pm
    Sep 24, 2005 at 2:50 pm
  • 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. ...
    JuerdJuerd
    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 LittleStevan 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 ClarkNicholas 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 BlechschmidtIngo 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 SmithBenjamin 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 BlechschmidtIngo 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 KogaiDan 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 BroadwellGeoffrey 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 ...
    JuerdJuerd
    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 SummarizerThe 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 FowlesMatt 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 SandlassThomas 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 SummarizerThe 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 PalmerLuke 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-GordonBrent 'Dax' Royal-Gordon
    Sep 2, 2005 at 12:38 am
    Sep 2, 2005 at 12:38 am
Group Navigation
period‹ prev | Sep 2005 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions44
posts338
users58
websiteperl6.org

58 users for September 2005

Juerd: 49 posts Yuval Kogman: 49 posts TSa: 31 posts Luke Palmer: 28 posts Larry Wall: 24 posts Ingo Blechschmidt: 18 posts Ashley Winters: 9 posts Damian Conway: 9 posts Stevan Little: 9 posts Stuart Cook: 9 posts Austin Hastings: 6 posts Matt Fowles: 6 posts Thomas Sandlass: 6 posts Piers Cawley: 5 posts Ruud H.G. van Tol: 5 posts Damian Conway: 4 posts Dave Whipp: 4 posts Michele Dondi: 4 posts Nicholas Clark: 4 posts Peri Hankey: 4 posts
show more
Archives