RFC 63 (v4) Exception handling syntax

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Exception handling syntax =head1 VERSION Maintainer: Peter Scott <[EMAIL PROTECTED]> Date: 8 Aug 2000 Last-Modified: 23 Aug 2000 Version: 4 Mailing List: [EMAIL PROTE

RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Omnibus Structured Exception/Error Handling Mechanism =head1 VERSION Maintainer: Tony Olekshy <[EMAIL PROTECTED]> Date: 08 Aug 2000 Last Modified: 23 Aug 2000 Version: 2 Mailing List: [E

RFC 143 (v1) Case ignoring eq and cmp operators

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Case ignoring eq and cmp operators =head1 VERSION Maintainer: Markus Peter <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 143 =head1 ABSTRACT Perl curre

RFC 144 (v1) Behavior of empty regex should be simple

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Behavior of empty regex should be simple =head1 VERSION Maintainer: Mark Dominus <[EMAIL PROTECTED]> Date: 24 August 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 144 =head1 ABSTRACT =

RFC 145 (v1) Brace-matching for Perl Regular Expressions

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Brace-matching for Perl Regular Expressions =head1 VERSION Maintainer: Eric J. Roode <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 145 =head1 ABSTRACT

RFC 147 (v1) Split Scalars and Objects/References into Two Types

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Split Scalars and Objects/References into Two Types =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 23 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 147 Sta

RFC 150 (v1) Extend regex syntax to provide for return of a hash of matched subpatterns

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Extend regex syntax to provide for return of a hash of matched subpatterns =head1 VERSION Maintainer: Kevin Walker <[EMAIL PROTECTED]> Date: 23 Aug 2000 Mailing List: [EMAIL PROTECTED] Version:

RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Replace $self in @_ with self() builtin (not $ME) =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 152 Statu

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>Remove socket functions from core Why? What is the justification? I can think of some, but you haven't given them. In general, the misplaced zealotry to strip Perl down into someting where nothing is predefined is hardly a good investment. It's not like it will make anything appreciably sma

Re: RFC 153 (v1) New pragma 'autoloader' to load modules on-demand

2000-08-24 Thread Tom Christiansen
>A main goal for Perl 6 is to make it faster, more compact, and lighter >weight. This means moving lots of former core functions into modules. Andy D once posted something showing empirical evidence that this hypothesis is in fact *FALSE*. And I was taught that given a false hypothesis, nothing

Re: RFC 138 (v1) Eliminate =~ operator.

2000-08-24 Thread Piers Cawley
Larry Wall <[EMAIL PROTECTED]> writes: > Mark-Jason Dominus writes: > : It may turn out that the new notation really does have exactly the > : same ambiguities, but that's not clear to me now. All I said was that > : I would like to see some discussion of it. > > Operator vs term processing wou

RFC 93 (v2) Regex: Support for incremental pattern matching

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Regex: Support for incremental pattern matching =head1 VERSION Maintainer: Damian Conway <[EMAIL PROTECTED]> Date: 11 August 2000 Last Modified: 24 August 2000 Version: 2 Mailing List: [EMAIL PROT

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Nathan Wiger
Tom Christiansen wrote: > > It is? I don't see that this is a pain at all. It seems like > a beautiful point of homogenization. You don't force the user > to say $self; they could use $this if they wanted. Heck, they > don't need it at all. > > my(undef, @args) = @_; It's a pain if you

Re: RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.

2000-08-24 Thread Nathan Torkington
Bart Lateur writes: > Oh. I would have put my hopes on a better (= more generic) O::Deparse > mechanism to make Perl analyse the source code for you. Rewriting a Perl > in a module seems a bit silly to me. I don't know enough swear words to say how much I fucking hate the stupid braindead dumbfuc

RFC 154 (v1) Simple assignment lvalue subs should be on by default

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Simple assignment lvalue subs should be on by default =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 154 S

RFC 153 (v1) New pragma 'autoloader' to load modules on-demand

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE New pragma 'autoloader' to load modules on-demand =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 153 Statu

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, andwantarray() changes

2000-08-24 Thread Chaim Frenkel
How would you handle differentiating between safe-coding practices and debugging type (internal) pre/post conditions? > "DC" == Damian Conway <[EMAIL PROTECTED]> writes: >> I would have assumed that a pre/post/invariant would not be used regularly, >> but rather under optional control. So

RFC 149 (v1) Lvalue subroutines: implicit and explicit assignment

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Lvalue subroutines: implicit and explicit assignment =head1 VERSION Maintainer: James Mastros <[EMAIL PROTECTED]> Date: 24 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 149 S

Re: RFC 63 (v4) Exception handling syntax

2000-08-24 Thread Ilya Martynov
PRL> Exceptions are objects belonging to some C class. Cing PRL> an exception creates the object; therefore, C above is just a PRL> class name (possibly including some C<::>). PRL> PRL> The C function is just syntactic sugar for creating a new PRL> exception class;it merely amounts to C<@EXCEPTI

Re: RFC 63 (v4) Exception handling syntax

2000-08-24 Thread Peter Scott
At 07:54 PM 8/24/00 +0400, Ilya Martynov wrote: >PRL> Exceptions are objects belonging to some C class. Cing >PRL> an exception creates the object; therefore, C above is just a >PRL> class name (possibly including some C<::>). >PRL> >PRL> The C function is just syntactic sugar for creating a new

Re: RFC 63 (v4) Exception handling syntax

2000-08-24 Thread Ilya Martynov
On Thu, 24 Aug 2000, Peter Scott wrote: PS> From the beginning of the posting you're quoting: PS> PS> This RFC has been merged into RFC 88. The text of the last version PS> prior to the merge is left below for archival purposes only. Anyone PS> interested in browsing this for historical reasons

Re: On the case for exception-based error handling.

2000-08-24 Thread Peter Scott
At 02:06 AM 8/24/00 -0600, Tony Olekshy wrote: >I just don't think that with with respect to the infrastructure >mechanism per se, "fatality" should have anything to do with it. >In the end, that's a judgement call; that's what we get paid the >big bux for ;-) I have reservations about the 'sever

Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Jonathan Scott Duff
On Thu, Aug 24, 2000 at 03:37:59PM -, Perl6 RFC Librarian wrote: > =head1 TITLE > > Omnibus Structured Exception/Error Handling Mechanism Woohoo! > catch Alarm => { ... } > catch Alarm, Error => { ... } > catch $@ =~ /divide by 0/ => { ... } The => here seems like useless synta

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

2000-08-24 Thread Brust, Corwin
-Original Message- From: Bart Lateur [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 7:00 PM To: [EMAIL PROTECTED] Subject: Re: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-like "with" or "express" On Tue, 22 Aug 2000 00:03:48 -0600 (MDT), Nathan Torkington wrote:

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Hildo Biersma
> =head1 TITLE > > Replace $self in @_ with self() builtin (not $ME) > Don't impose your religion on others. If people want 'this' instead of 'self', that should be just fine. It should be pretty easy to define the appropriate $ME-reader like this: use ObjectStyle 'self'; or use Object

RE: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Lipscomb, Al
>No idea what the internals reasons are. Here are my reasons: It would be a good idea to work over the way sockets are used and maybe come up with a better model than the C/Unix like way things are now. Having sockets in the core makes as much sense as having the ability to open and read disk

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>up with a better model than the C/Unix like way things are now. Having >sockets in the core makes as much sense as having the ability to open and >read disk files (early Pascal anyone?) in todays world of networked >computers. >From what Larry's said about making open work on URLs, he's in you

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Michael Maraist
I would actually further this sort of activity. I admire micro-kernel-type systems. C and Java give you no functions out of the box. Keywords are just that, keywords. I believe python is like this as well. The idea being that everything has to come from a module.. This limits how much a new de

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>I admire micro-kernel-type systems. C and Java give you no functions out of >the box. Keywords are just that, keywords. I believe python is like this >as well. The idea being that everything has to come from a module.. This >limits how much a new developer has to learn, and it doesn't pollute

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

2000-08-24 Thread Chaim Frenkel
I'm missing what you are trying to say. Are you suggesting that $foo = @bar no longer mean ($foo = scalar(@bar)) == 3 ? I wasn't suggesting going that far. Just a little more DWIM. So that ($foo, @bar, $baz) = (1,2,3) # $foo = 1 @bar=(2,3), $baz = undef # o

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

2000-08-24 Thread John Porter
Jarkko Hietaniemi wrote: > > Still not good. "trans" is too overloaded word. "transaction"? > "transactional"? (a bit too long...) "atomic"? "acid"? http://www.cs.duke.edu/education/courses/cps212/fall98/slides-html/recover/tsld002.htm http://www.byte.com/art/9504/sec11/art3.htm#fouracid T

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Dan Sugalski
At 10:26 AM 8/24/00 -0600, Tom Christiansen wrote: > >Remove socket functions from core > >Why? What is the justification? I can think of some, but you >haven't given them. There are a number of good reasons to do this from an internals standpoint, enough that I'd like to do it. From an exte

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>At 10:26 AM 8/24/00 -0600, Tom Christiansen wrote: >> >Remove socket functions from core >> >>Why? What is the justification? I can think of some, but you >>haven't given them. >There are a number of good reasons to do this from an internals standpoint, >enough that I'd like to do it. Is one

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Nathan Torkington
Tom Christiansen writes: > >There are a number of good reasons to do this from an internals standpoint, > >enough that I'd like to do it. > > Is one allowed to know that number, and those reasons? :-) No idea what the internals reasons are. Here are my reasons: * the current socket(), bind(),

Re: 142 (v1): Enhanced Pack/Unpack

2000-08-24 Thread Tom Christiansen
Here was my old demo/proposal, such as it was. --tom $buff = "\0" x rusage->sizeof(); syscall(&SYS_getrusage, &RUSAGE_SELF, $buff) && die "getrusage: $!"; $ru = rusage->new_from_buffer($buff); # or $ru = rusage->new(); $ru->unpack($buff); # or @fields = rusage->unp

Re: 142 (v1): Enhanced Pack/Unpack

2000-08-24 Thread Jim Edwards
Tom Christiansen wrote: > printf "uid %d logged on from %s on %s.\n", > $him->ut_uid, $him->ut_host, scalar local $him->ut_date; > > Is ut_uid a scaler value here? It occured to me when I read this that it would be nice to get rid of the distinction between $him->{ut_uid} $him->[ut

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

2000-08-24 Thread Karl Glazebrook
Ssshh don't mention RFC 109! To give some background: RFC 109 comes from me, and caused some "interesting" debate on perl6-language. It's not that relevant to PDL. RFC 115-117 are key RFCs from the PDL-Porters - things we really want to see to make Perl better for numerics. These are the main

Re: 122 (v1): types and structures

2000-08-24 Thread David L. Nicol
Tom Christiansen wrote: > C type declarations are pretty universally despised. By whom? This is news to me. I have always thought that the C type declaration is a concise and platform-independent way of declaring a packed structure, and effectively hiding implementation details (offsets into i

Re: 142 (v1): Enhanced Pack/Unpack

2000-08-24 Thread Tom Christiansen
>The existing pack and unpack methods depend upon a simple >grammar which leads to opaque format specifications, Well, can lead. "f c4" is easy, but the big ones aren't. >which are >often difficult to get right, and which carry no information >regarding variable names. >A more descriptive gra

Re: 122 (v1): types and structures

2000-08-24 Thread Tom Christiansen
>Tom Christiansen wrote: >> C type declarations are pretty universally despised. >By whom? >This is news to me. I have always thought that the C type declaration >is a concise and platform-independent way of declaring a packed >structure, and effectively hiding implementation details (offsets

Re: RFC for $ME class variable (was Re: RFC 124 (v1) Sort order forany hash)

2000-08-24 Thread Nathan Wiger
Bart Lateur wrote: > > >I hate it, it's miserable. Too much hidden trickery and special cases. > > Quite the countrary, I should think. Have you seen the subs > self_or_default and self_or_CGI in the source of CGI.pm? Yep, if you check out my File::Remote module I hijacked them. Thanks again,

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

2000-08-24 Thread Bart Lateur
On Thu, 24 Aug 2000 02:02:06 +0200, Markus Peter wrote: >$one{two\three\four} instead of $$$one{two}{three}{four} Isn't that $one{two}{three}{four} -- Bart.

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Dave Rolsky
On Thu, 24 Aug 2000, Hildo Biersma wrote: > Don't impose your religion on others. If people want 'this' instead of > 'self', that should be just fine. > > It should be pretty easy to define the appropriate $ME-reader like this: > > use ObjectStyle 'self'; > > or > > use ObjectStyle 'Java

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Tom Christiansen
>Currently, the current object context is passed into a sub as the first >element of @_, leading to the familiar construct: > my $self = shift; >However, this is a big PITA. In particular, if you support lots of >different calling forms (like CGI.pm), you have to check whether $_[0] >is a ref,

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Michael Maraist
>sub do_stuff { >my $self = self; >$self->{STATE}->{something} = @_; >} > >sub error { >carp @_ if self->config('VerboseErrors'); >} I've never really seen anything like this before in other languages (Is that good or bad?). The closest is Java's odd use o

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

2000-08-24 Thread Randal L. Schwartz
> "Bart" == Bart Lateur <[EMAIL PROTECTED]> writes: Bart> On Tue, 22 Aug 2000 00:03:48 -0600 (MDT), Nathan Torkington wrote: >> Normally what you'd say is: >> >> with (%record) { >> >> } >> >> (look at me, using Larry's new ... operator :-) Bart> No you didn't. You typed four dots. T

Re: RFC 149 (v1) Lvalue subroutines: implicit and explicit assignment

2000-08-24 Thread Chaim Frenkel
> "PRL" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: PRL> Therefore, the definition of the return function must be changed PRL> such that it is lazy. PRL> Additionally, the definition of assignment must not normally PRL> evaluate a lazy expression, but rather evaluate it to the point P

Re: RFC 154 (v1) Simple assignment lvalue subs should be on by default

2000-08-24 Thread Chaim Frenkel
> "PRL" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: PRL> The key to the proposal is this: lvalue and rvalue versions of a sub PRL> would work I, and both would be enabled by default. PRL> I, assignment is the only valid operator for these default PRL> lvalue subs. Attempts to use other

Re: RFC 154 (v1) Simple assignment lvalue subs should be on by default

2000-08-24 Thread Nathan Wiger
Chaim Frenkel wrote: > > Why this limitation? > > If the lvalue is a fundemental type (whatever that is) everything works > as if the lvalue were actually in place > > sub foo { return $a } > foo =~ s///;# same as $a =~ s///; This is not the type of lvalue sub that th

Re: RFC 153 (v1) New pragma 'autoloader' to load modules on-demand

2000-08-24 Thread Nathan Wiger
Tom Christiansen wrote: > > >A main goal for Perl 6 is to make it faster, more compact, and lighter > >weight. This means moving lots of former core functions into modules. > > Andy D once posted something showing empirical evidence > that this hypothesis is in fact *FALSE*. Ok. Perhaps I shoul

Re: On the case for exception-based error handling.

2000-08-24 Thread Tony Olekshy
Glenn Linderman wrote: > > Tony Olekshy wrote: > > > > You are oversimplifying by mixing the notions of exceptions > > and errors, whether you are aware of their difference or not. > > I am aware of the difference between errors and exceptions; > however, I firmly believe that exception handling

Re: On the case for exception-based error handling.

2000-08-24 Thread Tony Olekshy
Glenn Linderman wrote: > > Here's some code that returns one non-fatal error. I'd like to > change it to use the new RFC 88 mechanism. Please show me how. > I've included how to do it via RFC 119. Note that sub > really_delicate_code is documented that only one possible > non-fatal error can o

Re: RFC 119v2: Object neutral error handling via exceptions

2000-08-24 Thread Tony Olekshy
Glenn Linderman wrote: > > Tony Olekshy wrote: > > > RFC 88 does say: > > > > finally { ... } > > > > Once the try block is entered, every finally block is > > guaranteed to be entered before the try statement completes, > > whether or not any exceptions have been raised since th

Examples from RFC 88 redone using RFC 119 facilities [Was: Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism]

2000-08-24 Thread Glenn Linderman
Tony, Having done the exercise of redoing all your RFC 88 examples into RFC 119 syntax, I conclude that the two biggest differences between the syntaxes is the explicit or implicit try, which is mostly an irrelevant placeholder; some like it, some don't. The biggest syntax simplifications came i

Re: Why "fatal" errors aren't special.

2000-08-24 Thread Glenn Linderman
Peter Scott wrote: > At 11:21 AM 8/24/00 -0700, Glenn Linderman wrote: > >By building up a > >non-fatal error handling technique on top the existing fatal error > >handling technique, you are forcing code that assumes it will die to > >behave differently, when you wrap a try block around it. Now

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Nathan Wiger
Tom Christiansen wrote: > > So it seems that what you're saying is that you'd like a way to > *know* for certain whether you were invoked as a method -- or not, > as the case might be. Sort of. Actually, I want to not care. Adding a :method constraint doesn't help (actually hurts) because then t

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Nathan Wiger
Hildo Biersma wrote: > > > =head1 TITLE > > > > Replace $self in @_ with self() builtin (not $ME) > > > > Don't impose your religion on others. If people want 'this' instead of > 'self', that should be just fine. Whoa! I'm not imposing religion on others. FAR FROM IT! Maybe the examples I demo

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Bart Lateur
On Thu, 24 Aug 2000 13:27:01 -0700, Nathan Wiger wrote: >It's a pain if you want to support both function-oriented and >object-oriented calling forms, as CGI.pm does. For example, you can use >both of these: > > print header; > print $r->header; > >with CGI.pm. Now you need a self_of_default

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Randal L. Schwartz
> "Nathan" == Nathan Wiger <[EMAIL PROTECTED]> writes: Nathan> The key difference is this: $_[0] always contains the first method Nathan> argument, regardless of whether you're in an object-oriented or Nathan> function-oriented context. So, if you need to support both (like CGI.pm Nathan> and

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Tom Christiansen
>It's a pain if you want to support both function-oriented and >object-oriented calling forms, as CGI.pm does. For example, you can use >both of these: > print header; > print $r->header; >with CGI.pm. Now you need a self_of_default special method, since >sometimes $_[0] has a class ref and

Episode 4 - A New Version

2000-08-24 Thread GregLondon
Dan Sugalski <[EMAIL PROTECTED]> writes: > I'm picturing a WAP-enabled cellular furbie with > an R2D2-style projector thingie for the video. > It's not a pretty sight... "Help us Lawrence Wall, you're our only hope..." bzzp! "Help us Lawrence Wall, you're our only hope..." bzzp! "Help us Lawr

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Stephen P. Potter
Lightning flashed, thunder crashed and "Michael Maraist" whispered: | >From this, socket, and virtually all IPC methods should go the wayside. | This includes pipes, shell environment ops ( the get and set functions ), | and even the file-io (open, close, and possibly even printf, sprintf). At |

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>I have several RFCs I need to write about removing certain functionality >out of the core (math functions, IPC, networking, "user"). I don't want to >go too overboard. I don't know that we want to go so far as to remove >printing and such. It might be nice to generalize some functions (like th

Re: RFC 155 (v1) Remove geometric functions from core

2000-08-24 Thread Jarkko Hietaniemi
On Thu, Aug 24, 2000 at 08:29:21PM -, Perl6 RFC Librarian wrote: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > Remove geometric functions from core > > =head1 VERSION > > Maintainer: Stephen P. Potter <[EMAIL PROTECTED]> > Date: Aug

Re: RFC 155 - Remove geometric functions from core

2000-08-24 Thread Michael G Schwern
A friend pointed out, technically most are trigonometric functions, not geometric. atan2, cos, sin, acos, asin and tan are all trig. exp, log, sqrt are... just math I guess. So I suppose the proposed module would be Math::Trig or some such. Or maybe, as the source code suggests, Math::High:Falu

Re: RFC 155 - Remove geometric functions from core

2000-08-24 Thread Tom Christiansen
>A friend pointed out, technically most are trigonometric functions, >not geometric. atan2, cos, sin, acos, asin and tan are all trig. >exp, log, sqrt are... just math I guess. >So I suppose the proposed module would be Math::Trig or some such. Or >maybe, as the source code suggests, Math::High

How to facilitate ports to other bytecode architectures (was Re: .NET IL)

2000-08-24 Thread Bradley M. Kuhn
bkuhn wrote: > >I *think* that the consensus is that we should make it easy for people who > >want to port to the JVM, or the so-called ".NET Implementation Language". > >As the JVM porter, I'd like my life easy, but I don't expect perl6 to hand > >me a JVM implementation---I just want to right co

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Bradley M. Kuhn
> >I admire micro-kernel-type systems. C and Java give you no functions out of > >the box. Keywords are just that, keywords. I believe python is like this > >as well. The idea being that everything has to come from a module.. This > >limits how much a new developer has to learn, and it doesn'

Re: RFC 146 (v1) Remove socket functions from core

2000-08-24 Thread Tom Christiansen
>Perhaps it would be better to have Perl support all of perlfunc(1) in the >core still, but allow users to turn subsets off? >Or, perhaps the core functions could be syntactic sugar for access to >modules, and have a transformation happen automagically in the parser? (My >gut says "here there be

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

2000-08-24 Thread Hildo Biersma
Larry Wall wrote: > > I expect that we'll get more compile-time benefit from > > my HASH sub foo { > ... > } > > %bar = foo(); Ah, the Return Value Optimization so loved in C++... For those who haven't seen it before, you can optimize this by passing in a reference to %bar

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

2000-08-24 Thread Bart Lateur
On Thu, 24 Aug 2000 09:38:28 +0100, Hildo Biersma wrote: >> I expect that we'll get more compile-time benefit from >> >> my HASH sub foo { >> ... >> } >> >> %bar = foo(); > >Ah, the Return Value Optimization so loved in C++... > >For those who haven't seen it before, you can

Re: RFC 136 (v1) Implementation of hash iterators

2000-08-24 Thread Jeremy Howard
Dan Sugalski wrote: > Plus I can see each being used more often if we extend it to be valid for > sparse arrays, or used more under the hood with iterators and lazy lists > and suchlike things. Each, when used on a sparse array, would presumably > return a list of offset/value pairs of valid entri

Re: RFC 93 (v2) Regex: Support for incremental pattern matching

2000-08-24 Thread John Porter
Damian Conway <[EMAIL PROTECTED]>: > > It is proposed that the Perl 6 regular expression engine be extended to > allow a regex to match against an incremental character source, rather than > only against a fixed string. > > Specifically, it is proposed that a subroutine reference could be bound

Re: RFC 145 (v1) Brace-matching for Perl Regular Expressions

2000-08-24 Thread James Mastros
- Original Message - From: "Eric Roode" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 24, 2000 1:56 PM Subject: Re: RFC 145 (v1) Brace-matching for Perl Regular Expressions > Well, if we stick to the model of a lowercase/uppercase pair > for this proposed feature,

Re: RFC 145 (v1) Brace-matching for Perl Regular Expressions

2000-08-24 Thread James Mastros
One thing I'd like to see is being able to specify qr//d regexes or list (refs) within this, to be able to give multiple equivlent objects. For example, the list ("<<" => ">>", "\N{left gimmulet}" => "\N{right gimmulet}") would allow << to match >> and « to match ». However, (["<<", "\N{left gim

Re: RFC 138 (v1) Eliminate =~ operator.

2000-08-24 Thread Steve Fink
Nathan Wiger wrote: > > > : =~ has no real world equivalent, and in fact I don't know how to > > : pronounce it in English so that $x =~ /a/ makes sense. > > > > Yes, that's all pretty much on the mark. > > Not true, IMO. In math, =~ is used to indicate "rough equivalence". > (Actually, the ~ go

Re: RFC 149 (v1) Lvalue subroutines: implicit and explicit assignment

2000-08-24 Thread James Mastros
From: "Chaim Frenkel" <[EMAIL PROTECTED]> Sent: Thursday, August 24, 2000 2:42 PM Subject: Re: RFC 149 (v1) Lvalue subroutines: implicit and explicit assignment PRL> Therefore, the definition of the return function must be changed PRL> such that it is lazy. PRL> Additionally, the definition of

Re: Structured exception handling should be a core module.

2000-08-24 Thread Peter Scott
At 06:06 PM 8/24/00 -0600, Tony Olekshy wrote: >In fact, not only would I be pleased and honoured to author the >Perl 6 core Try.pm module, I'm already working on a Perl 5 standard >reference implementation. That should certainly tell you whether it's doable :-) >Peter, I think we should make th

Re: Structured exception handling should be a core module.

2000-08-24 Thread Tony Olekshy
Peter Scott wrote: > > At 06:06 PM 8/24/00 -0600, Tony Olekshy wrote: > > > >In fact, not only would I be pleased and honoured to author the > >Perl 6 core Try.pm module, I'm already working on a Perl 5 standard > >reference implementation. > > >Peter, I think we should make this approach more c

Re: Structured exception handling should be a core module.

2000-08-24 Thread Peter Scott
At 06:48 PM 8/24/00 -0600, Tony Olekshy wrote: >Peter Scott wrote: > > > > At 06:06 PM 8/24/00 -0600, Tony Olekshy wrote: > > > > > >In fact, not only would I be pleased and honoured to author the > > >Perl 6 core Try.pm module, I'm already working on a Perl 5 standard > > >reference implementatio

Re: Why "fatal" errors aren't special.

2000-08-24 Thread Glenn Linderman
Tony Olekshy wrote: > Some discussion has suggested that it might be a good idea if it > were possible to have a simple way to prevent catch from catching > so-called "fatal" errors. Some fringe ideas have actually included > two seperate mechanisms, one for so-called fatal errors (based on > di

Re: Why except and always should be a seperate RFC.

2000-08-24 Thread Glenn Linderman
Tony Olekshy wrote: > Other than for the except and always clauses, RFC 199 is very > similar to RFC 88. I like the idea behind except and always, > but I think the proposed implementation could be dramatically > simplified. > > The first thing to realize is that just because 119 doesn't say > "

Re: Why "fatal" errors aren't special.

2000-08-24 Thread Peter Scott
At 11:21 AM 8/24/00 -0700, Glenn Linderman wrote: >By building up a >non-fatal error handling technique on top the existing fatal error >handling technique, you are forcing code that assumes it will die to >behave differently, when you wrap a try block around it. Now it will only >"maybe" die.

Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Jonathan Scott Duff
On Thu, Aug 24, 2000 at 10:10:49AM -0700, Peter Scott wrote: > At 12:07 PM 8/24/00 -0500, Jonathan Scott Duff wrote: > > > catch Alarm => { ... } > > > catch Alarm, Error => { ... } > > > catch $@ =~ /divide by 0/ => { ... } > > > >The => here seems like useless syntax to me. > > Au c

Re: RFC 88: What does catch "Foo" { } do?

2000-08-24 Thread Graham Barr
On Sun, Aug 20, 2000 at 09:23:20AM -0700, Peter Scott wrote: > At 10:14 AM 8/20/00 -0600, Tony Olekshy wrote: > >Graham Barr wrote: > > > > > > I am of the opinion that only a class name should follow catch. > > > If someone wants to catch based on an expression they should use > > > > > > catch

Re: RFC 140 (v1) One Should Not Get Away With Ignoring System Call Errors

2000-08-24 Thread Chaim Frenkel
> "JH" == Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: JH> "The first operation done on the return value of open() shall be defined() JH> or you shall regret your pitiful existence."? (a flag on the scalar coming JH> from open that makes any other op than defined() to die and defined() clear

Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Peter Scott
At 12:50 PM 8/24/00 -0500, Jonathan Scott Duff wrote: > > How should the parser disambiguate > > > > my ($hash,%hash); > > try { ... } catch $hash { ... } > > > > ? But if we require the comma, we know it's parseable, because map can > do it. > >map is a slightly different animal because

Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Jonathan Scott Duff
On Thu, Aug 24, 2000 at 10:47:45AM -0700, Peter Scott wrote: > > > But I initially wanted to do without the => ... unfortunately that would > > > require another keyword to handle the EXPR case and it didn't seem > > worth it. > > > >Not necessarily. > > > > catch { EXPR } { ... }

Re: RFC 140 (v1) One Should Not Get Away With Ignoring System Call Errors

2000-08-24 Thread Jarkko Hietaniemi
On Thu, Aug 24, 2000 at 02:09:15PM -0400, Chaim Frenkel wrote: > > "JH" == Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: > > JH> "The first operation done on the return value of open() shall be defined() > JH> or you shall regret your pitiful existence."? (a flag on the scalar coming > JH> fr

Re: Exception handling [Was: Re: Things to remove]

2000-08-24 Thread Glenn Linderman
Tony Olekshy wrote: > Glenn Linderman wrote: > > > I do recall seeing this quote; however, replacing AUTOLOAD is a very > > specific instance of resuming from or retrying a fault condition. And > > even though a retry mechanism could be generalized from AUTOLOAD to > > handling other conditions,

Re: RFC 119v2: Object neutral error handling via exceptions

2000-08-24 Thread Glenn Linderman
Tony Olekshy wrote: > Yes, well, at this point I must re-iterate that (in light of reasons > for the existence of a try keyword that I have explained in other > messages), what you've written is the same as: > > try { ... } finally { &do_something(); } Yes, they are equivalent. And note

Re: RFC 88 (v2) Omnibus Structured Exception/Error Handling Mechanism

2000-08-24 Thread Peter Scott
At 12:07 PM 8/24/00 -0500, Jonathan Scott Duff wrote: > > catch Alarm => { ... } > > catch Alarm, Error => { ... } > > catch $@ =~ /divide by 0/ => { ... } > >The => here seems like useless syntax to me. Au contraire... it emerged from our discussion of this case: > catch EXP

Re: Why $@ should be structured data.

2000-08-24 Thread Glenn Linderman
Tony Olekshy wrote: > There you have it. That's why RFC 88 uses structured data for $@. That's a good argument, one that I have no quarrel with. As an enhancement to eval/die, this would make it more flexible for checking conditions. And with appropriate stringification, it is upward compatib

RFC 156 (v1) Replace first match function (C) with a flag to the match command.

2000-08-24 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Replace first match function (C) with a flag to the match command. =head1 VERSION Maintainer: Stephen P. Potter <[EMAIL PROTECTED]> Date: Aug 24 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Num

Re: OT: pronouncing "www" (was: Re: ... as a term)

2000-08-24 Thread Austin Hastings
"foo.bar" ne "www.foo.bar" pronounce("foo.bar") eq pronounce("www.foo.bar") As in, "Surf to www.perl.org and read the new ..." sounds like "Surf to perl dot org and read the new ..." =Austin --- Tom Christiansen <[EMAIL PROTECTED]> wrote: > >The "www" in e.g., "www.netscape.com" is pronounce

Re: RFC 143 (v1) Case ignoring eq and cmp operators

2000-08-24 Thread Jarkko Hietaniemi
On Thu, Aug 24, 2000 at 10:28:51PM +0200, Bart Lateur wrote: > On 24 Aug 2000 15:40:00 -, Perl6 RFC Librarian wrote: > > >Perl currently only has C and C operators which work case-sensitively. > >It would be a useful addition to add case-insensitive equivalents. > > Next you'll want case)ins

Re: RFC 151 (v1) Merge C<$!>, C<$^E>, and C<$@>

2000-08-24 Thread Bart Lateur
On 24 Aug 2000 16:03:56 -, Perl6 RFC Librarian wrote: >Merge C<$!>, C<$^E>, and C<$@> Merging $! and $^E makes perfect sense to me. I don't know why there are two different error variables. Er... wasn't that three? I'm not absolutely certain, but I thought there was a third one, too. Oh yes

Re: RFC 143 (v1) Case ignoring eq and cmp operators

2000-08-24 Thread John Porter
Bart Lateur wrote: > > Suppose you want to keep the case on the hash keys, because you > enumerate them. But you still want to find hash entries in a case > insensitive manner... ...then you simply reach for Tie::CPHash on CPAN! -- John Porter

Re: RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.

2000-08-24 Thread Bart Lateur
On 24 Aug 2000 20:24:52 -, Perl6 RFC Librarian wrote: >Damian Conway's Text::Balanced module does a pretty good job of >tokenizing Perl code. However, bare C and C require >semantic analyis to distinguish them from division and the hook >(C) operator. > >To remove this hassle, and thus permi

Re: RFC 151 (v1) Merge C<$!>, C<$^E>, and C<$@>

2000-08-24 Thread Peter Scott
At 10:37 PM 8/24/00 +0200, Bart Lateur wrote: >On 24 Aug 2000 16:03:56 -, Perl6 RFC Librarian wrote: > > >Merge C<$!>, C<$^E>, and C<$@> > >Merging $! and $^E makes perfect sense to me. I don't know why there are >two different error variables. $! eq "No such file or directory"; $^E eq "CD-R

  1   2   3   >