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 y

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 bes

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 i

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

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

Re: formats and localtime

2000-07-31 Thread Matthew Persico
Give it strftime capabilities. Hmm, that's another point - if you change localtime, doesn't strftime have to change too? As does the implementation of scalar(localtime()). $0.02 offered IMHO -- Matthew O. Persico "If you were supposed to understand it, we wouldn't call it code." - FedEx NetZero Free Internet Access and Email_ Download Now http://www.netzero.net/download/index.html Request a CDROM 1-800-333-3633 ___

Re: formats and localtime

2000-07-31 Thread Matthew Persico
Simon Cozens wrote: > > On Mon, Jul 31, 2000 at 11:14:34PM -0400, Matthew Persico wrote: > > The original format stuff HAS to be kept. Don't document it so as not to > > encourage its use. > > Deliberately leaving things undocumented? I'm sorry, you must have u

Re: formats and localtime

2000-07-31 Thread Matthew Persico
installed for multiple versions of Perl? I haven't yet seen that discussion, but it is one I want to participate in. My current methods of using /usr/local/lib/perl/5.004_04/lib/perl5 /usr/local/lib/perl/5.005_03/lib/perl5 /usr/local/lib/perl/5.6.0/lib/perl5 and mucking about with PERL5

Re: What is Perl?

2000-08-01 Thread Matthew Cline
around too much more extra info. (At least, this is the impression I get from my limmited knowledge of Perl internals). -- Matthew Cline| Suppose you were an idiot. And suppose that [EMAIL PROTECTED] | you were a member of Congress. But I repeat | myself. -- Mark Twain

Re: Typeglobs, filehandles, asterisks

2000-08-01 Thread Matthew Persico
ed_ in the scope of the > local see the $unnamed_foo as the value of $foo too. > While hard to get ones brain round at first is is amazingly useful > on occasion. > > -- > Nick Ing-Simmons Plus, are you willing to guarantee that no reassignment ($foo = $unnamed_foo) is

Re: type-checking [Was: What is Perl?]

2000-08-01 Thread Matthew Cline
. Time to dispatch > the Perl Police! :-P Great! Where do I get the torches and Frankenstein rakes? -- Matthew Cline| Suppose you were an idiot. And suppose that [EMAIL PROTECTED] | you were a member of Congress. But I repeat | myself. -- Mark Twain

Re: Object oriented Perl6?

2000-08-02 Thread Matthew Persico
ot a typo. I'll stop the Java rant short, since it is off topic. Hard as that is to do... > --tom -- Matthew O. Persico "If you were supposed to understand it, we wouldn't call it code." - FedEx NetZero Free Internet Access and Email_ Download Now http://www.netzero.net/download/index.html Request a CDROM 1-800-333-3633 ___

Re: RFC: On-the-fly tainting via $^T

2000-08-01 Thread Matthew Cline
On Tue, 01 Aug 2000, Dan Sugalski wrote: > At 11:57 PM 7/31/00 -0700, Matthew Cline wrote: > >Something else which might be useful for tainting would be something like: > > > > taint_var($foo); > > no_taint_var($bar); > > > >With this, any value ass

Re: perl 6 requirements

2000-08-01 Thread Matthew Persico
In support, I got the impression that Larry wasn't even going to play Supreme Court on this one and that this was the whole point of all these groups and Perl6 - get Larry out from under all the piles of responsibility and to make Perl truck-proof. ;_) -- Matthew O. Persico &q

Re: RFC: On-the-fly tainting via $^T

2000-07-31 Thread Matthew Cline
With this, any value assigned to $foo would become tainted, and any value assigned to $bar would become untainted. Also: my $fh = new FileHandle("trusted_config_file"); $fh->setTrusted(1); Then anything read from $fh wouldn't be tainted, rather than having to unta

Re: access to pod/doc text by code

2000-08-08 Thread Matthew Persico
7;ll bet that if you are writting to the screen or a file, THAT's the slow part, not traipsing through the file parsing for POD. It might make an interesting Benchmark test. -- Matthew O. Persico "If you were supposed to understand it, we wouldn't call it code." - FedEx

Re: RFC 269 (v1) Perl should not abort when a required file yields a false value

2000-09-21 Thread Matthew Wickline
(offlist) If I had a qoute file for a raondom sig generator, this would surely be added. :) > Some languages like to have the compiler emit annoying messages to > announce you forgot to include some pointless code whose only purpose > is to stop the compiler from emitting the annoying message.

Re: RFC 270 (v1) Replace XS with the C module as the standard way to extend Perl.

2000-09-21 Thread Matthew Cline
ight C, XS, and Inline. Hmmm There's More Than One Way To Do It? ;-) -- Matthew Cline| Suppose you were an idiot. And suppose that [EMAIL PROTECTED] | you were a member of Congress. But I repeat | myself. -- Mark Twain

Referring to package variables in the default namespace in p6

2005-07-19 Thread Matthew Hodgson
current' namespace? $::foo? $?PACKAGENAME::foo? $::($?PACKAGENAME)::foo? %PACKAGENAME::? 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 &q

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

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: These rules are all fair enough - but they are then ambiguous for $::Foo. Is that the leaf name variable Foo in your current (innermost) namespace? It is not ambiguous if the sigil rules that expression. I a

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 variab

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

2008-01-11 Thread Matthew Walton
hat I want parallel execution - provided that the ability to do it is there and it's easy to get at and behaves 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. >

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 (f

Re: Logo considerations - 3 logos needed

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

Re: Grammars that generate stuff

2009-03-28 Thread Matthew Wilson
for a selection 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: Multi-d array transforms (was Re: Array rotate)

2009-06-12 Thread Matthew Walton
n types as well - but maybe our multis are fine with that, and maybe this is just some crazy dream caused by waking up too early on a Saturday morning and thinking about Perl before breakfast. Matthew

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
hey've just shot, because they can look at the signature and know the semantics of the parameter passing being used and know that if they change the value externally before you return Bad Things Could Happen. Matthew

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
hey've just shot, because they can look at the signature and know the semantics of the parameter passing being used and know that if they change the value externally before you return Bad Things Could Happen. Matthew

Mixing in to method objects

2009-06-25 Thread Matthew Walton
ethods can carry a load of extra data around with them - which seems like 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: 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. Reed wrote: > Wrong reply button... > > -- Forwarded message -- > From: "Mark J. Reed" > Date: Mon, 10 Aug 2009 07:36:52 -0400 > Subj

Fwd: More flexible POD

2009-08-10 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 Date: Tue, Aug 11, 2009 at 7:10 AM Subject: Re: More flexible POD To: Jon Lang

Re: s/ DateTime <-> Instant / TAI /

2009-09-09 Thread Matthew Wilson
Dare I suggest TAIME? I do. On 9/9/09, Richard Hainsworth 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 th

Re: Cobra & Ioke Programming Languages

2009-09-16 Thread Matthew Walton
On Thu, Sep 17, 2009 at 4:41 AM, yary 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 ioke look usefu

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 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 in circular refe

Re: Cobra & Ioke Programming Languages

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 6:58 PM, yary 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 differen

Re: Freezing role methods

2009-10-15 Thread Matthew Walton
On Thu, Oct 15, 2009 at 10:07 AM, Ovid 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 dependent upon a method > x(), such that

Re: unusual invocants

2009-10-20 Thread Matthew Walton
erl6 thinks where clauses on invocants are allowed, but Rakudo currently seems to completely ignore them. I'm 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 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 multiple dispatch

Re: error installing Perl6

2009-11-12 Thread Matthew Walton
On Thu, Nov 12, 2009 at 2:30 PM, Richard Hainsworth 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: Counting characters

2010-01-27 Thread Matthew Walton
On Wed, Jan 27, 2010 at 1:19 PM, Carl Mäsak 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

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 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 use self-r

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 yo

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 wrote: > Hello, > >            I had just began looking at the perl6 raduko compiler and have a > q

Re: perl6 compiler

2010-03-19 Thread Matthew Wilson
read of this: >>> >>> <http://www.parrot.org/> <http://www.parrot.org/>http://www.parrot.org/ >>> >>> The parrot project is to build a virtual machine for dynamic languages, >>> like perl 6. >>> >>> On Wed, Mar 17, 2010 at 1

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 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 is but doesn't

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 wrote: > Matthew Walton wrote: >> >> On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey >> wrote: >>> >>> So, I'll ask again:  Where in the official documentation does it state >>> that >>

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 wrote: > Forgot to send this to the list. > > -- Forwarded message -- > From: Alex Elsayed ... > It's also CPS based, which fits pretty well. > Here's another, one that might fit more readily with perlesque/CLR: Actors that Unify T

Re: Mutating methods

2004-03-11 Thread Matthew Walton
trouble. And having said all that, I like .= as invocation syntax for it, even if I keep thinking it means 'append string'. Anyway, thankyou for listening, I shall return now to watching in awe. Matthew

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Angel Faus wrote: Most people know about this sequence because the ~ character is a common one in URLs, so the situation is not as bad as i may look. Neverthless, I definetly hope that a future FAQ of perl6 has a big section labeled How do I Write These Funky Chars in My OS. That sounds like a g

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

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 'c

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',

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

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{ something

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 l

A12: Mutating Methods and hyperoperators

2004-04-19 Thread Matthew Walton
entirely possible I've missed 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: 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 wh

Re: A12: syntax to call Attributes

2004-04-21 Thread Matthew Walton
Jonathan Lang wrote: How would I call attributes? Specifically, what if I'm calling a list attribute from a scalar object? my Dog $spot; my Dog @pack; $spot->@.legs; # INCORRECT (I hope) [EMAIL PROTECTED]; # INCORRECT? @spot.legs;# What if you also have @spot declared? As a gues

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 o

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 sy

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Juerd wrote: my $n = IO::Socket::INET.new LocalPort => 20010, Listen => 5; Or, if I'm remembering correctly: my IO::Socket::INET $n .= new LocalPort => 20010, Listen => 5; I really hope I'm remembering correctly. Is this turning into the 'look how great Perl 6 is' thread?

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: 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 com

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 ti

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 fa

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... http://www.o

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({ # preprocessing

Re: Semantics of vector operations (Damian)

2004-06-14 Thread Matthew Walton
thought of anybody actually using 'any' 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' fea

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 remove

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 speci

Re: user-defined operators?

2004-06-25 Thread Matthew Walton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry Wall wrote: | Same in Perl 6. For instance, to call the binary addition operator | C<< $a + $b >> by its "true name", you'd say C<< infix:+($a,$b) >>. | When you define an operator, you always use the "true name" form. I immediately start to feel

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 ''{

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 t

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: 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. I

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 ther

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 pr

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. It'

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, co

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 poi

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 th

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 done

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 geni

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 mot

S13: Deep operators

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

Re: S13: Deep operators

2004-11-23 Thread Matthew Walton
ling reason 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

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 reg

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 purel

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

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 cou

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 1

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 warni

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 cour

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 i

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

  1   2   >