Re: RFC 39 (v2) Perl should have a print operator

2000-08-18 Thread Nathan Torkington
Jon Ericson writes: > First repeat 10 times - "It's not a replacement, it's a shortcut." Gotta say that I think it's (a) a nasty punctuation mess (don't we have *enough* of those already?) (b) unnecessary (I don't get grumpy at typing `print') (c) opening up more problems than it's solving G

Re: TAI time

2000-08-18 Thread Tim Jenness
On 18 Aug 2000, Russ Allbery wrote: > Mark-Jason Dominus <[EMAIL PROTECTED]> writes: > > > TAI is an international time standard. It has a number of technical > > advantages over UTC. One of these advantages is that it doesn't have > > any silly truck with leap seconds. > libtai looks like a

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Jeremy Howard
> Steve Fink writes: > > And both those examples apply to the underpinnings. Ok, maybe I have an > > unusually broad definition of the word "underpinnings". Think "anything > > that can't be done with a pure perl module". > Say "anything that can't be done *fast*enough* with a pure perl module" an

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Bryan C . Warnock
On Fri, 18 Aug 2000, David L. Nicol wrote: > There will Be No Perl7 Of course not. Odd numbers are the development releases. The next Perl after 6 will be 8. Seriously, while a worthwhile goal, this is rather short-sighted. The industry and the world will continue to change in spite (or beca

Re: Ideas that need RFCs?

2000-08-18 Thread Nathan Torkington
Stephen P. Potter writes: > * The match operator, C, is always required (bare C becomes a fatal > error). I could live with that. Damian's done some work trying to tokenize Perl and knows what the weird edge cases are. Damian, can you post your short list? > * Replace C, C, and C with equiva

Re: RFC 131 (v1) Internal String Storage to be Opaque

2000-08-18 Thread Bryan C . Warnock
On Fri, 18 Aug 2000, Simon Cozens <[EMAIL PROTECTED]> wrote: > RFC 131 {snipped} Having pondered this (unsuccesfully) for a couple weeks, I will certainly concede that this is the simplest way of handling this problem. A couple counter-points. 1. I believe your extrapolation from 'one strin

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Nathan Torkington
Steve Fink writes: > And both those examples apply to the underpinnings. Ok, maybe I have an > unusually broad definition of the word "underpinnings". Think "anything > that can't be done with a pure perl module". I'm not wild about that metric, either. Exporter is pure Perl, but I'd love to see

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Nathan Torkington
David L. Nicol writes: > RFC: Perl6 is Final. There will Be No Perl7 > > We declare that our framework willbe so flexiblke > that anything can be done with it and there will be no penalty > for something being in-core opposed to out-of-core and so on. Bad idea. You can't make anything

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Damian Conway writes: > $add = ^a + ^b; > # a thousand lines later... > $incr = $add->(1); > # a thousand lines later... > $x = $incr->($x); I picture $add->(1) cloning add's optree, filling in the 1 where appropriate, then returning a reference to the new (cloned) o

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Damian Conway writes: > me, at least) trivial implementation issues, well documented in the > compiler literature. I choose to ignore them because I *have* to ignore > them or my brain is going to melt. The brief explanations you gave ("here's how it would be translated", and "walk each statement

Re: Extended Regexs

2000-08-18 Thread Mathieu Arnold
Robert Mathews wrote: > > > James Mastros wrote: > > > [/f for fast DFA regexen] > Jeremy Howard wrote: > > The choice of algorithms is a great idea, but why do we need a modifier? > > Isn't it a pretty straightforward set of rules that allow us to decide if a > > DFA matcher will work? It woul

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Steve Fink
Damian Conway wrote: > > It was simply attempting to explain why I choose to ignore what are (to > me, at least) trivial implementation issues, well documented in the > compiler literature. I choose to ignore them because I *have* to ignore > them or my brain is going to melt. So perhaps you sho

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread David L. Nicol
Here's my RFC todo list which I am dropping like a good mensch on the occasion of Friday Evening. RFC: Perl6 is Final. There will Be No Perl7 We declare that our framework willbe so flexiblke that anything can be done with it and there will be no penalty for something being in-

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Nathan Torkington
Steve Fink writes: > True. Would anyone mourn @$scalar_containing_variable_name if it died? > I've never used it, and I'm rather glad I haven't. Perl5's -w doesn't > notice $x="var"; print @$x either -- it'll complain if you mention @var > once. These are symbolic references. You can forbid them

Re: RFC 130 (v1) Transaction-enabled variables for Perl6

2000-08-18 Thread Chaim Frenkel
I don't think you should even attempt to version/transaction protect a tied variable. Anything that leaves the memory or could leave the memory (e.g. socket write) should probably not be versioned. Unless the tied variable somehow is able to tie itself into the transaction manager. It is up for

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Jeremy Howard
Nathan Wiger wrote: > Damian Conway wrote: > > > > You're error is in assuming I have time *now*. > > > > With 30+ RFCs still to write, I've been seriously contemplating > > just abandoning the Perl 6 effort, because added to the demands > > of my full-time job, my O'Reilly and other tutorial comm

Re: RFC 106 (v1) Yet another lexical variable proposal: lexical variables made default

2000-08-18 Thread Nathan Torkington
J. David Blackstone writes: > I agree with you. However, I am unable to find a case in which a > package global could not be replaced with a lexical defined in the > module's .pm file and an accessor method for it. Even if you are > extending a class, you can still provide this. A lexical plu

Re: Extended Regexs

2000-08-18 Thread Steve Fink
Robert Mathews wrote: > > > James Mastros wrote: > > > [/f for fast DFA regexen] > Jeremy Howard wrote: > > The choice of algorithms is a great idea, but why do we need a modifier? > > Isn't it a pretty straightforward set of rules that allow us to decide if a > > DFA matcher will work? It would

Re: RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-18 Thread David L. Nicol
Peter Scott wrote: > > At 05:12 AM 8/19/00 +1000, Damian Conway wrote: > >> The main downside of accessors is that you can't (currently) say > >> > >> local $obj->attribute = 2; > > > >Even if C returns an lvalue??? > > If it does, how do you localize it? What would that mean?

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Steve Fink
Nathan Torkington wrote: > > Don't forget that the rationale behind the infix dereferencing is > this: > > @variable_name > @{variable_name} > @$scalar_containing_variable_name @$scalar_containing_value_ref > @{ code evaluating to variable name } @{ code giving value ref } True. Wou

Re: Extended Regexs

2000-08-18 Thread Robert Mathews
> James Mastros wrote: > > [/f for fast DFA regexen] Jeremy Howard wrote: > The choice of algorithms is a great idea, but why do we need a modifier? > Isn't it a pretty straightforward set of rules that allow us to decide if a > DFA matcher will work? It would be a lot nicer if Perl could just not

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread David L. Nicol
Mike Pastore wrote: > > On 18 Aug 2000, Ariel Scolnicov wrote: > > > Actually, this suggests that C should return > > C<(@array)> (a copy of the values), and C the list > > C<(0..$#array)>. But those aren't very useful. > > I like the proposed syntax! I also think that C would be > useful, I o

Re: Extended Regexs

2000-08-18 Thread Jeremy Howard
James Mastros wrote: > On Fri, Aug 18, 2000 at 08:46:17PM +0100, Richard Proctor wrote: > > There is one significant area of perl that has very little attention here > > (other than one of my RFCs) that is regexs. > > > > Perl has very powerfull regexs - but what other features might be desirable?

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Steve Fink
"Casey R. Tweten" wrote: > > This looks counter intuitive, my brain says to dereference the reference at the > begining, just like you make the reference, in other words, keep it all the > same: > > $hashref->{key}->@ # Deref > $hashref->{key}->$ # Deref > $hashref->{key}->% # Deref > $hashref->

Re: TAI time

2000-08-18 Thread Russ Allbery
Mark-Jason Dominus <[EMAIL PROTECTED]> writes: > TAI is an international time standard. It has a number of technical > advantages over UTC. One of these advantages is that it doesn't have > any silly truck with leap seconds. One point to be aware of with TAI, however, is that Unix system clock

PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-like "with" or "express"

2000-08-18 Thread David L. Nicol
Dave Storrs wrote: > The following words could also be overloaded for this purpose: > map, use I think I like use %record{ is a macro that expands to {my \%_ = \%record; even better than the same thing without the key word.

RE: Draft 1 of RFC 88 version 2.

2000-08-18 Thread Brust, Corwin
-Original Message- From: Peter Scott [mailto:[EMAIL PROTECTED]] or even the cooler throw Exception::MyDB "ABC.1234" => "Some message about what went wrong" O! I like that! I guess I might come to love C after all. I think it would be best to supply a reference. This

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Steve Fink
Nathan Torkington wrote: > > Steve Fink writes: > > We are NOT here to construct a radically better language. We are here to > > design the underpinnings of one. > > Perhaps. And by "perhaps", I mean "no". > > We're here to say what we'd like to see in the next version of Perl. > These can be

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
[Apologies for following-up my own post] I wrote: > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tu

Re: Extended Regexs

2000-08-18 Thread James Mastros
On Fri, Aug 18, 2000 at 08:46:17PM +0100, Richard Proctor wrote: > There is one significant area of perl that has very little attention here > (other than one of my RFCs) that is regexs. > > Perl has very powerfull regexs - but what other features might be desirable? Well, one thing that has aca

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
Glenn Linderman wrote: > > If a curried subroutine is truly generated because of seeing an > expression containing placeholders, then that expression contains some > finite number of placeholders. Each placeholder turns into a parameter > of the generated subroutine. The generated subroutine has,

Re: TAI time

2000-08-18 Thread David E. Wheeler
Mark-Jason Dominus wrote: > > TAI is an international time standard. It has a number of technical > advantages over UTC. One of these advantages is that it doesn't have > any silly truck with leap seconds. ... Why, this sounds perfect, Mr. D! When will you write the RFC? David

TAI time

2000-08-18 Thread Mark-Jason Dominus
TAI is an international time standard. It has a number of technical advantages over UTC. One of these advantages is that it doesn't have any silly truck with leap seconds. Dan Bernstein has defined a time format called TAI64 which is based on TAI. The format is very simple. TAI64 is almost c

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Peter Buckingham
Glenn Linderman wrote: > > Nathan, thanks for zeroing in on this paragraph from RFC 23. It raises a > question in my mind about the meaning of the RFC, and whether the paragraph is > even necessary, which could answer your question about implementation. > > If a curried subroutine is truly gene

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread Buddha Buck
At 11:21 PM 8/18/00 +0300, Ariel Scolnicov wrote: >Actually, this suggests that C should return >C<(@array)> (a copy of the values), and C the list >C<(0..$#array)>. But those aren't very useful. I dunno... my @a :sparse; @a[1,5] = (1,1); @k = keys @a; print "@k";# prints "1,2,3,4,5" or "1

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Jonathan Scott Duff
On Sat, Aug 19, 2000 at 06:35:55AM +1000, Damian Conway wrote: > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tutori

Re: McNamara's C<$#> as a property of any array element

2000-08-18 Thread David L. Nicol
Jarkko Hietaniemi wrote: > > $item:n would be the position $item had in the last container it was in > > $item:i, you surely meant? $item:n would be the size of the list... The size of the list would be something like $#{$item:contained_in} the size of the list is not a property of the item, s

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Wiger
Damian Conway wrote: > > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tutorial commitments, > my modules, and my poo

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
> > The subroutines generated by a placeholder are not exactly like > > the equivalent subroutines shown above. If they are called with > > fewer than the required number of arguments, they return another > > higher order function, which now has the specified arguments > > bound as

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
Damian Conway <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Randal L. Schwartz) writes: > > > So is that something we've agreed, that lvalue subs are *always* > > scalars? That'd mean we can move on to the various implementation > > details. :) > > Err, I for one would like to see *any* dat

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
Nathan Torkington <[EMAIL PROTECTED]> writes: > ... the PDL folks who were the drivers for the current lvalue sub > implementation ... I assume they are on this list, then. -- Johan

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread Mike Pastore
On 18 Aug 2000, Ariel Scolnicov wrote: > Actually, this suggests that C should return > C<(@array)> (a copy of the values), and C the list > C<(0..$#array)>. But those aren't very useful. I like the proposed syntax! I also think that C would be useful, I often use arrays as integer-based lookup

Re: explicit boolean accessor

2000-08-18 Thread David L. Nicol
Exactly. The :bool attribute becomes a shorthand for that. Nathan Torkington wrote: > > David L. Nicol writes: > > What if perl6 kept it as the default, but allowed any class > > to override the object->BOOLEAN accessor which will return > > um, a special TRUE and FALSE which only make sens

Re: RFC 124 (v1) Sort order for any hash

2000-08-18 Thread David L. Nicol
And not only is it less to write, as a programmer, but you can abstract a general "sort these records by GPA" routine and everything can use the same one, fewer memory pages to dirty. Damian Conway wrote: > >> > my %students : sorted( $ME{^1}{GPA} <=> $ME{^0}{GPA} ); >> > >> Y

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Glenn Linderman
Nathan, thanks for zeroing in on this paragraph from RFC 23. It raises a question in my mind about the meaning of the RFC, and whether the paragraph is even necessary, which could answer your question about implementation. If a curried subroutine is truly generated because of seeing an expressio

Re: Draft 2 of RFC 88 version 2.

2000-08-18 Thread Glenn Linderman
Peter Scott wrote: > Technically, the only ones of these that impact the core are: message, and > link. The others might be better broken out into another RFC. One RFC for > throwing and handling exceptions; another one for what goes in the exceptions. So that was one thing I tried to do in RF

Re: Extended Regexs

2000-08-18 Thread Nathan Torkington
Damian Conway writes: >> * Using the pattern returned from some function as part of a regex > > /pattern returned from ${\some_function} as part of a regex/ (??{ some_function() }) more generally >> * Using an array of "words" as an alternate list as part of a regex > /match any of (${\

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread Ariel Scolnicov
"Christopher J. Madsen" <[EMAIL PROTECTED]> writes: > Jonathan Scott Duff writes: > > Excellent summary of why an explicit index is a Good Thing as compared > > to the programmer doing it himself. I think the syntax would need to > > be different though, how do you use implicit $_ and an inde

Re: Extended Regexs

2000-08-18 Thread Damian Conway
> Here is a few throw away thoughts - they don't constitute RFC > material yet, I am not sure if they would be that useful and have > not yet thought of any syntax, but any others? All of these can be > done today but are not necessarily "easy". > > * Embeded patterns that do no

Re: explicit boolean accessor

2000-08-18 Thread Damian Conway
> So what you want is for overloading to become easier, probably via > predefined methods? Excellent topic for an RFC. I'm already writing it (and exactly that way, too). Damian

Extended Regexs

2000-08-18 Thread Richard Proctor
Hi, There is one significant area of perl that has very little attention here (other than one of my RFCs) that is regexs. Perl has very powerfull regexs - but what other features might be desirable? I had one long term good idea on assignment and submitted that, but there may be other things peo

Re: explicit boolean accessor

2000-08-18 Thread Nathan Wiger
Nathan Torkington wrote: > > Nathan Wiger writes: > > > This works in Perl5. > > > > Right, a lot of this stuff (like STRING and BOOLEAN) can be accomplished > > through overloading. However, having a standard builtin method similar > > to tie and import makes things easier and more consistent I

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Damian Conway
> How about recursive calls to want(), similar to multiple $$$'s? > >if (want(want(want))) eq 'HASH' ) No, that's heading in the wrong direction (both figuratively and literally :-) C with no arguments returns a list of valid contexts. C with arguments expects a list of contexts a

Re: explicit boolean accessor

2000-08-18 Thread Nathan Torkington
Nathan Wiger writes: > > This works in Perl5. > > Right, a lot of this stuff (like STRING and BOOLEAN) can be accomplished > through overloading. However, having a standard builtin method similar > to tie and import makes things easier and more consistent I think. If we > make "everything an obje

Re: explicit boolean accessor

2000-08-18 Thread Nathan Wiger
> Like: > > use overload > 'bool' => \&my_truth; > > sub my_truth { > 1; # objects of this class are always true > } > > This works in Perl5. Right, a lot of this stuff (like STRING and BOOLEAN) can be accomplished through overloading. However, having a standard builtin method s

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Nathan Wiger
> want() obviously needs an additional parameter: how deep to go > back in the call stack. Which begs also for a way to find out how > deep is the call stack. How about recursive calls to want(), similar to multiple $$$'s? if (want(want(want))) eq 'HASH' ) -Nate

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Nathan Torkington
Johan Vromans writes: > I think scalars play a super-normal role already. E.g., hashes and > arrays can hold only scalar values. The restriction to scalars may be > a small one, especially when it makes the whole idea of lvalued > subroutines feasible. Without the need for zillions of operator > o

RFC 63

2000-08-18 Thread Peter Scott
I am willing to withdraw RFC 63 if the following parts are included somewhere in RFC 88 in this or equivalent language: "Note that C is a keyword, not a function. This is solely so that a C<;> is not needed at the end of the last block, since so many people are bound to think it shouldn't be th

Re: RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-18 Thread Peter Scott
At 05:12 AM 8/19/00 +1000, Damian Conway wrote: >> The main downside of accessors is that you can't (currently) say >> >> local $obj->attribute = 2; > >Even if C returns an lvalue??? If it does, how do you localize it? What would that mean? -- Peter Scott Pacific Systems Design

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Damian Conway
[EMAIL PROTECTED] (Randal L. Schwartz) writes: > So is that something we've agreed, that lvalue subs are *always* > scalars? That'd mean we can move on to the various implementation > details. :) Err, I for one would like to see *any* data types lreturn-able. If a subroutine can return a list,

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Nathan Torkington
Don't forget that the rationale behind the infix dereferencing is this: @variable_name @{variable_name} @$scalar_containing_variable_name @$scalar_containing_value_ref @{ code evaluating to variable name } @{ code giving value ref } Nat

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Damian Conway
> > Besides, context can't always tell: > > > > bar ( foo ); > > > > Should foo return a copy or an alias? > > want() obviously needs an additional parameter: how deep to go > back in the call stack. Which begs also for a way to find out how > deep is the call stack

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
[EMAIL PROTECTED] (Randal L. Schwartz) writes: > So is that something we've agreed, that lvalue subs are *always* > scalars? That'd mean we can move on to the various implementation > details. :) I think scalars play a super-normal role already. E.g., hashes and arrays can hold only scalar valu

Re: RFC 124 (v1) Sort order for any hash : syntax as a macro, more laziness

2000-08-18 Thread David L. Nicol
Jonathan Scott Duff wrote: > > Does the presence of an ordering subroutine cause perl to generate a > linked list of all the elements of the %hash in the proper sequence > prior to iteration (and somehow attach it to the iterator)? Seems > like everytime we did that it would generate a new oper

Re: RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-18 Thread Damian Conway
> The main downside of accessors is that you can't (currently) say > > local $obj->attribute = 2; Even if C returns an lvalue??? Damian

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Jarkko Hietaniemi
On Sat, Aug 19, 2000 at 05:07:15AM +1000, Damian Conway wrote: >> > But why introduce a new keyword "lreturn"? What about something like >> > this? >> > >> >sub foo { >> >my $lvalue : lvalue; >> >... >> >return $lvalue if wa

Re: implied pascal-like "with" or "express"

2000-08-18 Thread Damian Conway
> What if the hash keys we want to use are not valid scalar names? For example, > I've had keys like "total - female" as keys, but using the ^ syntax > would fail on this... ^{"total - female"}, just like $ variables. Damian

Re: Draft 2 of RFC 88 version 2.

2000-08-18 Thread Peter Scott
At 06:04 AM 8/18/00 -0600, Tony Olekshy wrote: > exception 'Error::DB::Foo'; > > Makes Error::DB::Foo into a class that inherits from the built-in > Exception class. > > If the given name matches /::/, something like this happens: > > @Error::DB::Foo::ISA = 'Error::DB'; Hmm,

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Damian Conway
> > But why introduce a new keyword "lreturn"? What about something like > > this? > > > > sub foo { > > my $lvalue : lvalue; > > ... > > return $lvalue if want('LVALUE'); > > } > > Error proneness? (Is that a word?) It is now :-) Besides, conte

Re: explicit boolean accessor

2000-08-18 Thread Nathan Torkington
David L. Nicol writes: > What if perl6 kept it as the default, but allowed any class > to override the object->BOOLEAN accessor which will return > um, a special TRUE and FALSE which only make sens in boolean > contexts? Like: use overload 'bool' => \&my_truth; sub my_truth { 1; #

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
Today around 2:47pm, Jerrad Pierce hammered out this masterpiece: : That's pretty damn nifty, too problems though: Thanks :-) : print SCALAR $hashref->{key}, "\n"; : is bogus, SCALAR eats the newline as an argument. : Granted this could be fixed with parens, but somehwat disap

Re: RFC 124 (v1) Sort order for any hash

2000-08-18 Thread Damian Conway
> > my %students : sorted( $ME{^1}{GPA} <=> $ME{^0}{GPA} ); > > > Yes, I was thinking the same thing. Except the '$ME' thing--what's that? (I > must have missed that discussion...) It's an idea that within a method call, the object reference would not be passed as the first argument (

Re: RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Larry Wall
Nathan Torkington writes: : Steve Fink writes: : > We are NOT here to construct a radically better language. We are here to : > design the underpinnings of one. : : Perhaps. And by "perhaps", I mean "no". : : We're here to say what we'd like to see in the next version of Perl. : These can be bi

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Jerrad Pierce
In reply to your message from the not too distant future: next Friday AD Reply-to: [EMAIL PROTECTED] Return-receipt-to: [EMAIL PROTECTED] Organization: a) Discordia b) none c) what's that? Content-Typo: gibberish, charset=ascii-art Date: Fri, 18 Aug 2000 14:47:44 EDT From: Jerrad Pierce That's p

Re: RFC 124 (v1) Sort order for any hash as an example of attributes in action

2000-08-18 Thread David L. Nicol
"Brust, Corwin" wrote: > > > -Original Message- > From: David L. Nicol [mailto:[EMAIL PROTECTED]] > How about > > %students : ( sort = $$students{^1}{GPA} <=> $$students{^0}{GPA} }); > > > > O, this is cool. > > > -Original Message- > my %students : sort

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Perl6 RFC Librarian writes: > =head2 Re-currying deferred expressions > > The subroutines generated by a placeholder are not exactly like the > equivalent subroutines shown above. If they are called with fewer than the > required number of arguments, they return another higher order function, > w

Re: C changes.

2000-08-18 Thread Jerrad Pierce
This had bugged me too. But the solution I had arrived at is slightly different. What do you think? ($retval, $scalar) = chomp $scalar; or ($retval, @list) = chomp @list; In list mode chomp returns a list whose first element is the return value, the remainder being the modified value(s). In cur

Re: Draft 1 of RFC 88 version 2.

2000-08-18 Thread Peter Scott
At 11:02 PM 8/17/00 -0600, Tony Olekshy wrote: > > Note: I used to favor $_[0] for the exception, but I'm being > > won over to $@. As long as it doesn't cause problems with > > external interfaces. Might mention the $_[0] idea in a > > footnote. > >Done. Um, see last message. There's a lot to

RFCs (Re: Ideas that need RFCs?)

2000-08-18 Thread Nathan Torkington
Steve Fink writes: > We are NOT here to construct a radically better language. We are here to > design the underpinnings of one. Perhaps. And by "perhaps", I mean "no". We're here to say what we'd like to see in the next version of Perl. These can be big things (currying) or small (hashes retur

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-18 Thread Nathan Torkington
Perl6 RFC Librarian writes: > There has been a proposed new core function C. this seems > to be generally regarded as a good thing. Fine. If it is implemented > we should use it. Offending functions (See RFC 37) should use > C internally to determine what to return i.e; a list or a hash. This imp

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
Today around 2:04pm, Casey R. Tweten hammered out this masterpiece: : Today around 10:45am, Steve Fink hammered out this masterpiece: : : : Ted Ashton wrote: : : > : : > > all : : > > dereferencing can be done with ->. : : > : : > I

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Casey R. Tweten
Today around 10:45am, Steve Fink hammered out this masterpiece: : Ted Ashton wrote: : > : > > all : > > dereferencing can be done with ->. : > : > Is that "can be done with" or "must be done with"? : > : > Either way, I like the ide

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread Nathan Torkington
Perl6 RFC Librarian writes: > foreach $item (@array) { > print $item, " is at index ", $#, "\n"; > } > > > The variable C<$#> currently holds the output format for printed > numbers. This would slow down all foreach loops, even those that didn't need to know $#. It's a similar

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Steve Fink
Ted Ashton wrote: > > > all > > dereferencing can be done with ->. > > Is that "can be done with" or "must be done with"? > > Either way, I like the idea. To me it reads more smoothly, and as I seldom > dare to use the double-punctu

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-18 Thread Steve Fink
Damien Neil wrote: > > On Thu, Aug 17, 2000 at 03:10:44PM -0700, Steve Fink wrote: > > My proposal would be what I implemented for perl5 a while back (Sarathy > > didn't dislike it, but wasn't convinced enough to put it in): all > > dereferencing can be done with ->. > > > > $x->@ is the same as

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Randal L. Schwartz
> "Johan" == Johan Vromans <[EMAIL PROTECTED]> writes: Johan> Why not? I couldn't find in the Camel that the right side must be Johan> evaluated first (at least not where the assignment operator = is Johan> discussed according to the index). Shouldn't: sub magicguy { lreturn @a; }

Re: RFC 131 (v1) Internal String Storage to be Opaque

2000-08-18 Thread Larry Wall
Simon Cozens writes: : On Fri, Aug 18, 2000 at 09:57:59AM -0700, Larry Wall wrote: : > Because we don't lose much efficiency to polymorphism, since we need it : > anyway to support generic scalars, and we gain some efficiency whenever : > we procrastinate conversions out of existence. : : Surely

Re: Thread usage cases

2000-08-18 Thread Christopher J. Madsen
Steven W McDougall writes: > 4. Regular expressions > It seems like an RE match should be atomic, because it hard to imagine > it executing sensibly if the target string changes during the match. > But then we have > > Thread1 Thread2 > $a =~ s/.../.../e; $a

RE: warn (was: yoda 2)

2000-08-18 Thread Peter Scott
At 10:33 AM 8/18/00 -0500, Brust, Corwin wrote: >Hmm this gets me thinking: >In the context of a catch block, if could @_ contain the exception stack, >starting with the current exception, could C be modified to act of @_ >if called in void context with no arguments? I like the idea of passing th

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
[EMAIL PROTECTED] (Randal L. Schwartz) writes: > How do you indicate to the compiler at the time of compiling: > > lvsub() = FOO > > that FOO should be evaluated in list context? Or scalar context? In all cases but one the context is scalar anyway. The only case when the context could

Re: Do threads support SMP?

2000-08-18 Thread Christopher J. Madsen
Steven W McDougall writes: > Does Perl6 support Symmetric MultiProcessing (SMP)? > 1 No > 1.2 Cons > We don't get SMP. SMP is a nyah, nyah issue. Without SMP, Perl will > have trouble outgrowing its toy/scripting language reputation. You left out the biggest con of not having preemptive th

Re: RFC 132: subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
"Syloke Soong" <[EMAIL PROTECTED]> writes: > func(args) = ... > func(args) += ... > func(args) =~ s/// > > Such functions have been modeled in object models that accept > arg-list+operator (head+operator) polymorphic signatures. It would be > up to the programmer of func() to dictate

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Johan Vromans
Jonathan Scott Duff <[EMAIL PROTECTED]> writes: > But why introduce a new keyword "lreturn"? What about something like > this? > > sub foo { > my $lvalue : lvalue; > ... > return $lvalue if want('LVALUE'); > } Because you cannot do this with my %has

Re: RFC 131 (v1) Internal String Storage to be Opaque

2000-08-18 Thread Simon Cozens
On Fri, Aug 18, 2000 at 09:57:59AM -0700, Larry Wall wrote: > Because we don't lose much efficiency to polymorphism, since we need it > anyway to support generic scalars, and we gain some efficiency whenever > we procrastinate conversions out of existence. Surely we do, because we have to add in

Re: RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-18 Thread John Siracusa
On 8/18/00 11:56 AM, Larry Wall wrote: > I'm not sure we have to throw out the orthogonality of OO to data > structure to get what you want. Do you mean orthogonality of syntax or implementation? Or both? It seems like it might be both cleaner and easier to allow "Perl 5 o-o" to live on largely

Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o XS)

2000-08-18 Thread Brian Ingerson
Oops, In my haste to upload version 0.23 (which supports MSWin32) I introduced a bug which will cause "make test" to fail *only* if the user is installing Inline.pm for the first time. Of course, everyone (except me) caught this right away. So I hastlily uploaded v0.24 :-) Please use that one i

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-18 Thread Christopher J. Madsen
Jonathan Scott Duff writes: > On Fri, Aug 18, 2000 at 10:12:02AM -0500, Christopher J. Madsen wrote: > > foreach $_ $index (@array) { ... } > > > > It's only 3 characters, and it makes for a nice consistant syntax. > > Yep, but it might also be a source of confusion too. There's no wa

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-18 Thread Randal L. Schwartz
> "Perl6" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: Perl6> If a sub wants to return an lvalue, this lvalue must be a real lvalue Perl6> in all respects. In particular, all kinds of implicit and explicit Perl6> value changes must be supported. For example, Perl6> lvsub() = ... P

Re: RFC 48 (v2) Replace localtime() and gmtime()

2000-08-18 Thread Christopher J. Madsen
> $hour = 0 .. 24 Did you mean 0 .. 23? > $wday = 1 .. 7 # 1 == Sunday, 7 == Saturday > I'm still a little uneasy about C<$wday> starting with 1 == Sunday, just > because Monday seems like the first day of the week to me. But I'm not > the one writing the calendars, and it

Re: RFC 131 (v1) Internal String Storage to be Opaque

2000-08-18 Thread Simon Cozens
(Damn these CC's!) On Fri, Aug 18, 2000 at 09:19:55AM -0700, Larry Wall wrote: > We seem to be asking for contradictory things here. If it's truly > opaque, the programmer shouldn't care whether it's polymorphic or > monomorphic. That's right. > I'm inclined to think the polymorphic solution w

  1   2   >