Rakudo Star 2013.12 Released!

2013-12-25 Thread Matthew
# Announce: Rakudo Star Release 2013.12 ## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the December 2013 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the December 2013

Fwd: [Boston.pm] Tech Meeting Tuesday

2013-12-06 Thread Matthew Wilson
FYI -- Forwarded message -- From: Bill Ricker bill.n1...@gmail.com Date: Dec 6, 2013 6:25 PM Subject: [Boston.pm] Tech Meeting Tuesday To: Boston Perl Mongers boston...@pm.org, Boston Perl Mongers (announce) boston-pm-annou...@pm.org Cc: Tuesday December 10, 2013 E51-376 Tim King

Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Matthew Wilson
frettled, Right, it's just the AL2 requires you to thoroughly rename the project's main name(s) if you redistribute a modified version.. -Matthew On Tue, Nov 5, 2013 at 7:21 AM, Jan Ingvoldstad frett...@gmail.com wrote: On Tue, Nov 5, 2013 at 3:36 PM, Moritz Lenz mor...@faui2k3.org wrote

Announce: Rakudo Star 2013.10 Released!

2013-10-29 Thread Matthew
## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the October 2013 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the October 2013 release is available from

Re: STDOUT = WWW

2011-07-08 Thread Matthew Walton
On 8 July 2011 12:28, Rajeev Prasad rp.ne...@yahoo.com wrote: will apps made for one distribution of Rakudo work with another? Yes, provided that the versions of Rakudo used are sufficiently compatible (one might have newer features that you used that another one hasn't updated to include yet,

Re: threads?

2010-10-12 Thread Matthew Walton
Damian, I use threads in C++ a lot in my day to day job. We use an in-house library which isn't much more than a thread class which you inherit from and give a Run method to, and a load of locks of various (sometimes ill-defined) kinds. Let me say: it's not good. Threads with semaphores and

Pragma to change presentation of numbers in Perl 6.

2010-09-01 Thread Matthew
Today I propose a pragma that changes how numbers are presented in Perl 6. The idea arises from a discussion on the freenode channel #perl6, available here: http://irclog.perlgeek.de/perl6/2010-09-01#i_2773432 The most important thing to remember is that the presentation of numbers in Perl 6

Re: Ideas for a Object-Belongs-to-Thread threading model

2010-05-12 Thread Matthew Wilson
On Wed, May 12, 2010 at 8:57 PM, Alex Elsayed eternal...@gmail.com wrote: Forgot to send this to the list. -- Forwarded message -- From: Alex Elsayed eternal...@gmail.com ... It's also CPS based, which fits pretty well. Here's another, one that might fit more readily with

Re: Proposal for a new Temporal time-measurement paradigm

2010-04-21 Thread Matthew
I whole-heartedly agree that we need to make a system independent of any sort of time measurement system. I think the conclusion reached on IRC was that most of the world uses or is at least familiar with the Gregorian system. Now, I can't help but think how we would define an Instant. The

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Matthew Walton
On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey shawnhco...@gmail.com wrote: Darren Duncan wrote: See http://perlcabal.org/syn/S02.html#Names for your answers. Thanks for the link but nowhere in it does it state tha Perl 6 names are case sensitive.  The best the do is this, which implies it

Re: Documentaion Details (was: underscores vs hyphens)

2010-04-12 Thread Matthew Walton
On Mon, Apr 12, 2010 at 8:04 PM, Shawn H Corey shawnhco...@gmail.com wrote: Matthew Walton wrote: On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey shawnhco...@gmail.com wrote: So, I'll ask again:  Where in the official documentation does it state that Perl 6 names are case sensitive? I

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-11 Thread Matthew
I can't help but agree with Damian. I don't see much of a point in making a distinction between - and _. More specifically, if a user were to define a function (say, i-hate-camel-case()), it would not be good to let them be the same. Readability would suffer when examining someone's code and

Re: perl6 compiler

2010-03-19 Thread Matthew Wilson
I be able to write applications that can process huge amounts of data like files,claims or account transactions on Rakudo in the future? I think this would be a huge push for perl and any dynamic language. :-) Matthew Walton wrote:  Rakudo in its normal operation will compile the program

Re: perl6 compiler

2010-03-16 Thread Matthew Walton
Rakudo in its normal operation will compile the program, then run it immediately. You can, however, get it to save the compiled code for later use i fyou wish. On Sun, Mar 14, 2010 at 4:09 PM, dell wendell_hatc...@comcast.net wrote: Hello,            I had just began looking at the perl6

Re: Functional-style pattern matching

2010-03-09 Thread Matthew Walton
I think the closest things we've got to pattern matching come from a combination of multiple dispatch, where clauses and signature unpacking. I don't know much about the latter, but a where clause can discriminate multiple dispatch variants based on parameter values rather than just the type, so

Re: One-pass parsing and forward type references

2010-02-01 Thread Matthew Wilson
On Mon, Feb 1, 2010 at 9:32 AM, Larry Wall la...@wall.org wrote: But I also think that type recursion is likelier to indicate a design error than function recursion, so I'm not sure how far down this road we want to go.  We could, for instance, create a new type name every I was going to say I

Re: Counting characters

2010-01-27 Thread Matthew Walton
On Wed, Jan 27, 2010 at 1:19 PM, Carl Mäsak cma...@gmail.com wrote: Mark (), Carl (): S05 describes tr/// in terms of the .trans function, a handsome but very different beast. Specifically, it doesn't seem to have a scalar context, with which one could count things. What does trans return in

Re: error installing Perl6

2009-11-12 Thread Matthew Walton
On Thu, Nov 12, 2009 at 2:30 PM, Richard Hainsworth rich...@rusrating.ru wrote: Can't exec svn: No such file or directory at build/gen_parrot.pl line 47. You need to install Subversion in order to allow the build script to obtain Parrot.

Re: unusual invocants

2009-10-20 Thread Matthew Walton
not sure what the proper behaviour should be. Matthew

Re: unusual invocants

2009-10-20 Thread Matthew Walton
On Tue, Oct 20, 2009 at 5:35 PM, David Green david.gr...@telus.net wrote: I would expect $foo where {$_ ~~ X} and X $foo simply to be different ways of writing the same thing, but whatever works! Yes, but the where clause lets you test against multiple types at once. They don't participate in

Re: Freezing role methods

2009-10-15 Thread Matthew Walton
On Thu, Oct 15, 2009 at 10:07 AM, Ovid publiustemp-perl6langua...@yahoo.com wrote: Reading the paper I linked to could help to clarify the issue.  In short, there are times under my current understanding of roles where you *can't* resolve the conflicts.  Two roles, each providing and

Re: Cobra Ioke Programming Languages

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 4:41 AM, yary not@gmail.com wrote: Perl is being actively developed for the Parrot VM. LLVM is another interesting option and if someone or some group would like to take it on, it would be a welcome alternate implementation. What parts in particular of Cobra and

Re: How can i contribute for perl 6 ?

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 4:13 AM, Saravanan T mail2sarava...@gmail.com wrote: Thanks everyone for sharing the links... Thought of working in porting Data::Dumper functionality in perl 6 .Seems like already there is .perl function which does the same.. and a monker mberends said there is a bug

Re: Cobra Ioke Programming Languages

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 6:58 PM, yary not@gmail.com wrote: Matthew Walton wrote Yes, Perl 6 does - it is not backwards compatible with Perl 5. That so? I thought Perl6 was supposed to recognize and execute perl5 code. That statement itself implies that perl6 and perl5 are different

Re: s/ DateTime - Instant / TAI /

2009-09-09 Thread Matthew Wilson
Dare I suggest TAIME? I do. On 9/9/09, Richard Hainsworth rich...@rusrating.ru wrote: Carl Mäsak wrote: Darren (), commit-bot (): +Returns a TAI epoch value for the current time. Shouldn't the result type of time() be an Instant object (Instant and Duration are defined in S02) rather than

Fwd: More flexible POD

2009-08-11 Thread Matthew Walton
Woops - forgot to reply all (I'm on an irritating mixture of lists which set reply-to and don't, and I never remember which is which). Sorry! -- Forwarded message -- From: Matthew Walton matt...@matthew-walton.co.uk Date: Tue, Aug 11, 2009 at 7:10 AM Subject: Re: More flexible

Re: Rukudo-Star = Rakudo-lite?

2009-08-10 Thread Matthew Walton
Then you could be like TeX and have releases numbered with ever-increasing parts of an irrational number. On Mon, Aug 10, 2009 at 12:37 PM, Mark J. Reedmarkjr...@gmail.com wrote: Wrong reply button... -- Forwarded message -- From: Mark J. Reed markjr...@gmail.com Date: Mon,

Mixing in to method objects

2009-06-25 Thread Matthew Walton
an excellent use for a mixin, especially as I could then smartmatch against it in order to pick out the relevant methods from the .^methods list. Matthew

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
externally before you return Bad Things Could Happen. Matthew

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
externally before you return Bad Things Could Happen. Matthew

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-13 Thread Matthew Walton
some crazy dream caused by waking up too early on a Saturday morning and thinking about Perl before breakfast. Matthew

Re: Grammars that generate stuff

2009-03-28 Thread Matthew Wilson
of browser-based examples... (it's also the subversion repo). Also if you don't mind things Microsoft, there's the (part of Oslo) M language family. -Matthew

Re: Logo considerations - 3 logos needed

2009-03-25 Thread Matthew Wilson
On Wed, Mar 25, 2009 at 6:06 PM, Larry Wall la...@wall.org wrote: http://www.wall.org/~larry/cameliafav.icohttp://www.wall.org/%7Elarry/cameliafav.ico out to be necessary. Hand-crafted anti-aliasing is your friend. :) Larry firefox at 3025%: cameliafav.ico all blown up. [groan]

Re: [svn:perl6-synopsis] r14494 - doc/trunk/design/syn

2008-01-24 Thread Matthew Wilson
BEGIN (right now at compile time) UNITCHECK (at end of this compilation unit) CHECK (at end of main compilation) (compile time finishes) ...time passes... (run time starts) INIT (main starts running) ENTER (every block entry) START (first time

Re: Sequential bias in S04 (and Perl6 in general)

2008-01-11 Thread Matthew Walton
in a sensible manner (naturally this lets you parallelise things the compiler isn't sure are safe to parallelise due to possible side effects. That's fine, since you know which side effects are okay to do that to in your program). Matthew

Re: Sequential bias in S04 (and Perl6 in general)

2008-01-11 Thread Matthew Walton
On Fri, 2008-01-11 at 10:34 -0800, Dave Whipp wrote: Matthew Walton wrote: I wouldn't agree with that at all. I think of arrays as ordered constructs, so I'd want the default iteration over my array to happen in the order of the indices. I guess that depends on whether you think

Re: Referring to package variables in the default namespace in p6

2005-07-21 Thread Matthew Hodgson
On Thu, 21 Jul 2005, TSa (Thomas Sandlaß) wrote: Matthew Hodgson wrote: I guess $::('Foo') was a bad example - $Foo=Foo; $::($Foo) would have been better at illustrating my point - which was that if $::($Foo) searches outwards through namespace for a variable whose name is held in $Foo

Re: Referring to package variables in the default namespace in p6

2005-07-20 Thread Matthew Hodgson
On Wed, 20 Jul 2005, TSa (Thomas Sandlaß) wrote: Matthew Hodgson wrote: I'm very surprised that package variables end up in OUR::, however - because surely they're not necessarily lexically scoped - and the whole point of 'our' was lexical global scoping, right? :/ Sorry, what is 'lexical

Referring to package variables in the default namespace in p6

2005-07-19 Thread Matthew Hodgson
' namespace? $::foo? $?PACKAGENAME::foo? $::($?PACKAGENAME)::foo? %PACKAGENAME::foo? cheers, Matthew. -- Matthew Hodgson [EMAIL PROTECTED] Tel: +44 7968 722968 Arathorn: Co-Sysadmin, TheOneRing.net®

Re: Referring to package variables in the default namespace in p6

2005-07-19 Thread Matthew Hodgson
On Tue, 19 Jul 2005, Larry Wall wrote: On Tue, Jul 19, 2005 at 07:25:35PM +0100, Matthew Hodgson wrote: : : So the question is: what is the correct syntax for referring to package : variables in the default namespace? The * looks like a twigil but it isn't really. It's short for *::, where

Re: ./method defunct

2005-06-21 Thread Matthew Zimmerman
point. I mean no offense, nor do I wish to beat a dead horse. I just want to make sure it's dead, instead of merely resting. -- Matt Matthew Zimmerman Interdisciplinary Biophysics, University of Virginia http://www.people.virginia.edu/~mdz4c/

Re: ./method defunct

2005-06-21 Thread Matthew Zimmerman
[Sorry, sent this to the wrong list by mistake.] Matthew Zimmerman wrote: Juerd wrote: Kurt skribis 2005-06-20 19:46 (-0400): On 6/20/05, Juerd wrote: Or you can just get your self with a simple (module that does) macro self () { '$?SELF' } And you could do the same

Re: ^method ?

2005-05-16 Thread Matthew Walton
On 15/05/05 22:48 +0100, Matthew Walton wrote: I don't think that is what Rob is saying at all. It wasn't aimed entirely at Rob. I have a bad habit on mailing lists of vaguely replying to the entire thread without remembering who said what and being too lazy to check. My read: .method

Re: ^method ?

2005-05-15 Thread Matthew Walton
. On 15 May 2005, at 16:17, Rob Kinyon wrote: Right now, P6 has $?SELF and I'm saying that instead of using $?SELF, we should use $self wherever $?SELF would be used. $_ is still the topic and would be the default invocant if you have .method($foo). What I'm saying is that you can have method (

Re: [pugs]weird thing with say ++$

2005-04-21 Thread Matthew Walton
On Thu, Apr 21, 2005 at 11:45:27AM +0200, Paul Johnson wrote: It certainly makes more sense to me that the answer would be 2 2. But however it ends up, so long as we know what the answer will be, we can utilize it effectively in our programs. The trick with this construct usually in C is

Re: should we change [^a-z] to -[a..z] instead of -[a-z]?

2005-04-15 Thread Matthew Walton
delurk even sillier question: if [a.z] matches a, . and z and [a...] matches all characters from a including (for some definition of 'all') how will be range \x21 .. \x2e written? [!..\.]? (i.e. . escaped?) /delurk I was assuming from Larry's mail that [a...] would parse as either:

Re: Junctive puzzles.

2005-02-10 Thread Matthew Walton
Matt Fowles wrote: This is Just Wrong, IMO. How confusing is it going to be to find that calling is_prime($x) modifies the value of $x despite it being a very simple test operation which appears to have no side effects? As far as I can see it, in the example, it's perfectly logical for

Re: Perl 6 Summary for 2005-01-31 through 2004-02-8

2005-02-09 Thread Matthew Walton
Michele Dondi wrote: On Tue, 8 Feb 2005, Matt Fowles wrote: pipe dreams Juerd wondered if he could mix = and == in a sane way. The answer appears to be no. Once you bring in == you should stick with it. Huh?!? It doesn't seem to me that the answer is 'no'. In fact C == is supposed to be

Re: Pop a Hash?

2005-02-09 Thread Matthew Walton
Rod Adams wrote: Does ($k, $v) == pop %hash; or ($k, $v) == %hash.pop; make sense to anyone except me? Makes sense to me. Although I would be more inclined to think of pop as returning a pair - but does a pair in list context turn into a list of key, value? If so then the above makes lots of

Re: Junctive puzzles.

2005-02-09 Thread Matthew Walton
Matt Fowles wrote: All~ On Tue, 08 Feb 2005 17:51:24 +0100, Miroslav Silovic [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Well, we see the same kind of thing with standard interval arithmetic: (-1, 1) * (-1, 1) = (-1, 1) (-1, 1) ** 2 = [0, 1) The reason that junctions behave this way is

Re: CLI signature?

2005-02-05 Thread Matthew Walton
Juerd wrote: This probably goes against everything a shell based platform wants, but would it be possible to give the program a sub-like signature? I ask this after another painful session of forgetting how things work, reading Getopt::Long's documentation. signature ( Rule $pattern,

Re: Making control variables local in a loop statement

2005-01-14 Thread Matthew Walton
Austin Hastings wrote: David Storrs wrote: On Thu, Jan 13, 2005 at 07:35:19PM -0500, Joe Gottman wrote: In Perl5, given code like for (my $n = 0; $n 10; ++$n) {.} the control variable $n will be local to the for loop. In the equivalent Perl6 code loop my $n = 0; $n 10; ++$n {.} $n

Re: iterators and functions (and lists)

2004-12-10 Thread Matthew Walton
Michele Dondi wrote: On Sun, 5 Dec 2004, Matthew Walton wrote: At least we had the sense to call them subroutines instead of functions. Of course, that also upset the mathematicians, who wanted to call them functions anyway. Go figure. That might be because the mathematicians haven't heard

Re: Topification [Was: Arglist I/O [Was: Angle quotes and pointy brackets]]

2004-12-07 Thread Matthew Walton
Austin Hastings wrote: I'll guess that you're pointing at .:send_one($_); Which supposedly uses topic to resolve .:send_one into $this.send_one. If that works, then I'm happy -- I like being able to control topic and $_ differently. But if Cfor changes topic, then what? OUTER::.:send_one($_);

Re: iterators and functions (and lists)

2004-12-07 Thread Matthew Walton
Larry Wall wrote: On Sun, Dec 05, 2004 at 12:05:46AM +, Matthew Walton wrote: : I'm sorry, but from a C++ background, overriding postcircumfix:( ) : feels far more natural to me than setting 'is default' on some method. That only works for disambiguation if you know which .() to call

Re: Topification [Was: Arglist I/O [Was: Angle quotes and pointy brackets]]

2004-12-06 Thread Matthew Walton
Luke Palmer wrote: The remaining problem is what to do about unary dot. Repeated here for the, er, benefit? of p6l: class Duple { has $.left; has $.right; method perform (oper) { oper($.left); oper($.right); } } Let's change that

Re: while Idiom (Was: Arglist I/O)

2004-12-06 Thread Matthew Walton
Elyse M. Grasso wrote: But you need to process the file while you haven't reached the end yet, or until you reach the end. And I can't think of an occasion where I knew going in what the length of the file I was processing was going to be. I suppose foreach might make sense if you sucked in the

Re: iterators and functions (and lists)

2004-12-04 Thread Matthew Walton
Larry Wall wrote: : of course, that analogy isn't going to work for true functions, which : returns the same all the time, for some given set of arguments. Oh, well, we pissed off the mathematicians long ago. :-) At least we had the sense to call them subroutines instead of functions. Of

Re: Angle quotes and pointy brackets

2004-12-01 Thread Matthew Walton
Larry Wall wrote: I thought so. : I don't think I've ever used a hash slice in my life. Is there something : wrong with me? No, a lot of people are naturally monoindexous. I like that word. : * The :w splitting happens after interpolation. So : : « foo $bar @baz » : : can end up

Re: Angle quotes and pointy brackets

2004-12-01 Thread Matthew Walton
Juerd wrote: Matthew Walton skribis 2004-12-01 9:55 (+): Yes, that would be fun... almost worth throwing out a compiler warning for that, especially if we've still got use warnings. Something like Warning: «{ }» creates empty list It should generate a warning similar to the warning

Re: Angle quotes and pointy brackets

2004-11-30 Thread Matthew Walton
Larry Wall wrote: I rather like it too. I'm glad someone else is thinking along the same lines. The basic problem with «...» is that most of its uses were turning out to be more useful that the corresponding In fact, I was thinking about all this on the way home from Seattle yesterday (a

Re: Angle quotes and pointy brackets

2004-11-28 Thread Matthew Walton
James Mastros wrote: Larry Wall wrote: On Fri, Nov 26, 2004 at 07:32:58AM +0300, Alexey Trofimenko wrote: : ah, I forget, how could I do qx'echo $VAR' in Perl6? something like : qx:noparse 'echo $VAR' ? I think we need two more adverbs that add the special features of qx and qw, so that you

Re: Lexing requires execution (was Re: Will _anything_ be able to truly parse and understand perl?)

2004-11-26 Thread Matthew Walton
Randal L. Schwartz wrote: Luke == Luke Palmer [EMAIL PROTECTED] writes: Luke But you don't really need to parse to syntax highlight, either. You Luke just need to tokenize. Unfortunately, to tokenize, you also have to know the state of the parse. As long as / is both divide and begin regex,

Re: Lexing requires execution (was Re: Will _anything_ be able to truly parse and understand perl?)

2004-11-26 Thread Matthew Walton
Randal L. Schwartz wrote: Matthew == Matthew Walton [EMAIL PROTECTED] writes: Matthew So you're saying that in Perl 6 it will be entirely impossible to Matthew determine if / appears as the division operator or as the beginning of Matthew a regex from a purely syntactic examination of the source

Re: Lexing requires execution (was Re: Will _anything_ be able to truly parse and understand perl?)

2004-11-26 Thread Matthew Walton
Randal L. Schwartz wrote: Matthew == Matthew Walton [EMAIL PROTECTED] writes: Matthew Perl 6 has formal parameters for subs, methods etc. I don't see any Matthew mention of Perl 5-style prototypes in S6, and I honestly can't see how Matthew they could possibly fit with formal parameters

Re: S13: Deep operators

2004-11-23 Thread Matthew Walton
for that is because you can get yourself into paradoxes that way. I didn't think we would be, as it would be hideously difficult to pick the right method to dispatch to, but I thought I'd check. Thanks Matthew

S13: Deep operators

2004-11-22 Thread Matthew Walton
types? Thanks Matthew

Re: Perl6/Parrot and Backwards Compatability

2004-10-31 Thread Matthew Walton
I suggest you read more about Parrot... it's designed to allow these things. There is a project (Ponie) to make Perl 5 run on Parrot, and there will be other languages as well - which will be able to call each others libraries. Making the Perl 5 libraries available to Perl 6 being a primary

Re: Perl 6 Summary for 2004-10-01 through 2004-10-17

2004-10-26 Thread Matthew Walton
Larry Wall wrote: On Tue, Oct 19, 2004 at 09:35:27PM +0100, Matthew Walton wrote: : Austin Hastings wrote: : Does this mean that we're done? :) : : No, it means Larry's about to stun us with something seemingly bizarre : and inexplicable which turns out to be a stroke of genius. The only

Re: Perl 6 Summary for 2004-10-01 through 2004-10-17

2004-10-19 Thread Matthew Walton
Austin Hastings wrote: Michele Dondi wrote: On Sun, 17 Oct 2004, Matt Fowles wrote: Google groups has nothing for Perl6.language between October 2 and 14. Is this really the case? (I had not signed up until shortly before Yes: no traffic at all for quite a while... Does this mean that we're

Re: A..Z alternatives

2004-09-23 Thread Matthew Walton
Andrew Rodland wrote: On Tuesday 21 September 2004 07:18 pm, Thomas A. Boyer wrote: Larry Wall wrote: Somebody needs to talk me out of using A..Z for the simple cases. Larry [ for array dimension placeholder ] That might confuse users of languages that were not C-syntax-influenced, who think

Re: Synopsis 9 draft 1

2004-09-09 Thread Matthew Walton
Michele Dondi wrote: On Thu, 2 Sep 2004, Larry Wall wrote: To declare a multidimensional array, you add a shape parameter: my num @nums is shape(3); # one dimension, @nums[0..2] my int @ints is shape(4;2); # two dimensions, @ints[0..3; 0..1] Just a random thought, and probably a minor

Re: A thought for later -- POD tables

2004-08-23 Thread Matthew Walton
Aaron Sherman wrote: =table C$_ | C$x | Type of Match Implied | Matching Code =row Any | CodeC $ | scalar sub truth | match if C$x($_) That's (the above comments aside) the same thing, and as I said when Luke suggested it, it seems fine if that's the way we'd prefer to go.

Re: Instantiation

2004-08-23 Thread Matthew Walton
Aaron Sherman wrote: I was thinking about the case where you use a module, only to define a class that you then instantiate like this: use Some::Module::That::Defines::A::Class; our Some::Module::That::Defines::A::Class $foo := new; and I keep thinking that that's too redundant.

Re: Return with no expression

2004-08-23 Thread Matthew Walton
Alexey Trofimenko wrote: On Fri, 20 Aug 2004 09:21:02 +0100, Matthew Walton [EMAIL PROTECTED] wrote: On 19 Aug 2004, at 18:04, Luke Palmer wrote: [...] my $num = $param == 0 ?? 0 : rand $param; my $num = $param == 0 ?? 0 :: rand $param; surely? a little off theme.. I wanna ask, could

Re: Return with no expression

2004-08-21 Thread Matthew Walton
Larry Wall wrote: On Fri, Aug 20, 2004 at 09:21:02AM +0100, Matthew Walton wrote: : It would be nice if rand behaved a bit more sanely in Perl 6. I can : understand the reasoning for making rand 0 produce between 0 and 1, but : that doesn't mean I have to like it. What makes you think

Re: Return with no expression

2004-08-20 Thread Matthew Walton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Aug 2004, at 18:04, Luke Palmer wrote: The one in Perl 5 that stands out most was the cause for the only patch I ever sent to p5p: the rand function. rand $x will give you a uniformly distributed random number in [0, $x) for any $x EXCEPT 0. If

Re: Mailing list archives

2004-08-13 Thread Matthew Walton
Joe Gottman wrote: There's something wrong with the mailing list archives at http://dev.perl.org/perl6/lists/. I can get to this page OK, but when I click on a link to the perl6-internals or perl6-language archives, I get a This page cannot be displayed error. The perl.org list server's been

Re: xx and re-running

2004-07-26 Thread Matthew Walton
Larry Wall wrote: The rand function may be a bad example, since it's by nature a generator, and you should maybe have to work harder to get a single value out of it. We haven't really said what $fh xx 100 should do, for instance. I guess the real question is whether xx supplies a list context to

Re: definitions of truth

2004-06-25 Thread Matthew Walton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hodges wrote: | --- Luke Palmer [EMAIL PROTECTED] wrote: | |Paul Hodges writes: | |So, in P6: | | if 0 { print 0\n; } # I assume this won't print. | if '0' { print '0'\n; } # I assume this won't print. | if ''{ print ''\n;}

Re: user-defined operators?

2004-06-24 Thread Matthew Walton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michele Dondi wrote: | I don't know if this is already provided by current specifications, but | since I know of Perl6 that is will support quite a powerful system of | function prototyping (signatures?), I wonder wether it will be possible | to

Re: Semantics of vector operations (Damian)

2004-06-14 Thread Matthew Walton
' in their code is... umm... well, let's just say the Haskell programmer me is curling up in fright and screaming his head off, because the idea is entirely abhorrent to him. Gadget Matthew says it's a substanceless 'wow' feature. Both are also skeptical about 'one', and my psychiatrist is rattling pill

Re: Semantics of vector operations (Damian)

2004-06-14 Thread Matthew Walton
Mark J. Reed wrote: On 2004-06-14 at 22:58:58, Matthew Walton wrote: 'it would be better to explicitly just say (@list.grep value) = undef although I think that might be supposed to be (@list.grep value) »= undef; Those do different things according to my understanding. The first removes all

Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread Matthew Walton
Ingo Blechschmidt wrote: Hello, quoting Apocalypse 6: You may ask a subroutine to wrap itself up in another subroutine in place, so that calls to the original are intercepted and interpreted by the wrapper, even if access is only through the reference: $id = $subref.wrap({ #

Re: Periodic Table of the Operators

2004-05-27 Thread Matthew Walton
Mark Lentczner wrote: All - Awhile back, I saw Larry Wall give a short talk about the current design of Perl 6. At some point he put up a list of all the operators - well over a hundred of them! I had a sudden inspiration, but it took a few months to get around to drawing it...

Re: Yadda yadda yadda some more

2004-05-14 Thread Matthew Walton
I actually find myself having somewhat coherent thoughts on this matter. Apologies if they seem rather obvious or naive, but I'm still new to all this. Dov Wasserman wrote: my $id = ...; my Int age = ...; my Str $name = ...; my DbHandle $db = ...; my Int of Hash @array = ...; Therefore, the

Re: Yadda yadda yadda some more

2004-05-14 Thread Matthew Walton
Austin Hastings wrote: I think of this as very much like the typed-undef we discussed last month or so: ... should return an unthrown exception wrapped in undef-ness. The type returned by ... should just have a multitude of type-casting tricks associated: my int $i = ...; # Fails at compile

Re: Yadda yadda yadda some more

2004-05-14 Thread Matthew Walton
[EMAIL PROTECTED] wrote: Austin Hastings wrote: my int $i = ...; # Fails at compile time -- no good conversion. my Int $i = ...; # Warns at compile time, fails at runtime. I don't get the reasoning here. If Yada Yada Yada is to indicate code that you haven't written yet, it should never

Re: Yadda yadda yadda some more

2004-05-13 Thread Matthew Walton
Larry Wall wrote: On Wed, May 12, 2004 at 11:37:44PM +0200, Juerd wrote: : Aaron Sherman skribis 2004-05-12 17:30 (-0400): : I like C... I like it a LOT. In fact, I'm partial to the idea that : it should be usable anywhere : : I agree. It'd make even more of my pseudo code (#perlhelp and :

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Stéphane Payrard wrote: Le Wed, May 12, 2004 at 02:00:42AM +0200, le valeureux mongueur Pedro Larroy a dit: Hi Is there any chance that in perl6 there will be the possibility to write if/else statements without {}s with the condition at the beginning? Like if (condition) statement; In

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Larry Wall wrote: On Wed, May 12, 2004 at 09:47:04AM +0100, Matthew Walton wrote: : For some reason, lots of people don't like it when indentation is : what's controlling their code structure... Indentation is a wonderful form of commentary from programmer to programmer, but its symbology

Re: A12: default accessors and encapsulation

2004-04-20 Thread Matthew Walton
Mark J. Reed wrote: Let me just chime in with my support for John's basic idea. I would definitely prefer that it be easy to arrange things such that $obj.foo = 'bar' winds up invoking a method on $obj with 'bar' as an argument, rather than invoking a method on $obj that returns an lvalue to

A12: Mutating Methods and hyperoperators

2004-04-19 Thread Matthew Walton
something, because I usually have. Thanks Matthew

Re: A12: Mutating Methods and hyperoperators

2004-04-19 Thread Matthew Walton
Luke Palmer wrote: Matthew Walton writes: But can I do @things».=method(); Of course. Excellent. Thankyou. Not this time :-) Next time then, probably.

Re: backticks

2004-04-17 Thread Matthew Walton
Juerd wrote: Sean O'Rourke skribis 2004-04-15 8:55 (-0700): I find that there are still plenty of contexts in which `` is nice and security is irrelevant. This is the second time in this thread that I read about security being unimportant. I still don't know what to say about it, though I feel

Re: backticks

2004-04-14 Thread Matthew Walton
Juerd wrote: chromatic skribis 2004-04-14 12:32 (-0700): That's exactly my objection to this idea. I think it goes too far to make simple things simpler while making complex things impossible. Absolutely false. This is an addition to the already existing {}, which should stay. %foo{

Re: Compatibility with perl 5

2004-04-13 Thread Matthew Walton
Mark J. Reed wrote: On 2004-04-13 at 13:16:02, David Cantrell wrote: Perl 6, we are promised, will try to run legacy code unchanged. How will it spot such legacy code? My understanding has been that perl6 will assume a program is Perl 5 unless it sees a Perl 6 keyword such as 'module' or

Re: Compatibility with perl 5

2004-04-13 Thread Matthew Walton
Thomas A. Boyer wrote: Matthew Walton wrote: That could be problematic, because if Perl 6 sees something like: my %myhash; %myhash{'foo'} = 'bar'; Is it going to think 'ahah, perl 6' or 'perl 5 with errors'? It's going to think 'ahah', perl 5'. Because it doesn't contain any Perl 6 keyword

Re: Compatibility with perl 5

2004-04-13 Thread Matthew Walton
Thomas A. Boyer wrote: The original question was how do I label my code as Perl 5? The correct answer, according to Apocalypse 1, is to start your source with package. If you didn't want to put your code in a package, then start it with package main. The other question was how do I label my

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Robin Berjon wrote: Specifying the OS is not enough, you need at least the keyboard layout. It would be impossible to have shortcuts involving | or \ on a French keyboard since they are respectively Alt-Shift-L and Alt-Shift-: OS X / iBook / fr-fr « Alt-è » Alt-Shit-è Good point. I tend to

  1   2   >