This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Builtins : Make use of hashref context for garrulous builtins
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 19 September 2000
Mailing List: [EMAIL PROTECTED]
Number: 259
Versi
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Distinguish packed binary data from printable strings
=head1 VERSION
Maintainer: Tim Conrow <[EMAIL PROTECTED]>
Date: 18 Sept 2000
Mailing List: [EMAIL PROTECTED]
Number: 258
Version: 1
Status:
I'm planning to withdraw RFC184 ("Perl should support an interactive
mode"), due to lack of interest. There was little discussion of it,
and the consensus seemed to be that C is "good enough" for
most purposes, and C for all others. While I do not agree, it
does mean there is no call for this R
Chaim Frenkel wrote:
> > "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:
>
> GL> There is a difference between "undefined" and "unknown".
>
> GL> Perl undefined is a different concept--that of an uninitialized
> GL> variable. This is proven from its earliest versions where the
> GL> valu
Morning all,
This email forms my latest semi-official report on the state of the Perl
6 Language WG, and also begs the forbearance of the Perl 6 community as
I go through a slightly difficult time personally.
I've been fairly quiet on -language and -meta because everything seems
to be moving alo
> "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:
GL> There is a difference between "undefined" and "unknown".
GL> Perl undefined is a different concept--that of an uninitialized
GL> variable. This is proven from its earliest versions where the
GL> value is coerced to 0 or '' (specific
> "ST" == Sam Tregar <[EMAIL PROTECTED]> writes:
ST> I think you're talking about unpack() here, which I've only used once. I
ST> think unpack() is usually replaceable by substr() or regexes. Contrast
ST> that with pack() for which no equivalent replacement is possible, as far
ST> as I know
> > The function itself would be called C and would be
> > imported with a C pragma.
>
> Much better, but I don't think you mean "pragma", and in fact I'm pretty
> sure you know that, but you still need to s/pragma/module/g. I think the
> title should be changed to something lik
> The function itself would be called C and would be
> imported with a C pragma.
Much better, but I don't think you mean "pragma", and in fact I'm pretty
sure you know that, but you still need to s/pragma/module/g. I think the
title should be changed to something like
Replace C and C built-i
> This RFC proposes that the internal cursor iterated by the C function
> be attached to the instance of C (i.e. its op-tree node),
In the past, this has been a mistake, because it breaks the identity
of closures. For example, with your proposal, the following code,
which works now, will no lo
Bart Lateur:
> If your P5->P6 translator is slow, i.e. written
> in Perl, this would imply a pretty big performace hit.
It is better for translated programs to do the right thing slowly than
to do the wrong thing as quickly as possible.
> What would help is a debugging mode that prints out the
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
UNIVERSAL::import()
=head1 VERSION
Maintainer: Michael G Schwern <[EMAIL PROTECTED]>
Date: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 257
Version: 1
Status: Developing
=head1 ABSTRACT
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Fix iteration of nested hashes
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 255
Version: 1
Status: Developing
=head1 A
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Replace C built-in with pragmatically-induced C function
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 15 Sep 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
N
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Retire chop().
=head1 VERSION
Maintainer: Nathan Torkington <[EMAIL PROTECTED]>
Date: 5 Sep 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 195
Version: 3
Status: Froze
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Replace => (stringifying comma) with => (pair constructor)
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 10 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Allow exception-based error-reporting.
=head1 VERSION
Maintainer: Bennett Todd <[EMAIL PROTECTED]>
Date: 8 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 70
Version:
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Compilation: Remove requirement for final true value in require-d and do-ed files
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 7 Aug 2000
Last Modified: 18 Sep 2000
Mailing Lis
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Operators: Polymorphic comparisons
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 7 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 54
Version: 2
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Request For New Pragma: Shell
=head1 VERSION
Maintainer: Bryan C. Warnock <[EMAIL PROTECTED]>
Date: 5 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 42
Version: 3
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Operators: Multiway comparisons
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 4 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 25
Version: 2
S
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Data types: Semi-finite (lazy) lists
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 4 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 24
Version:
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Control flow: Builtin switch statement
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 4 Aug 2000
Last Modified: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 22
Version
Tom asked how we'd deal with variadic subroutines without sacrificing
compile-time information (i.e. parameter lists).
Below I've indicated how RFC 128 would handle the cases he lists.
To recap: RFC 128 proposes that parameters may be given a C<:repeat>
attribute to make them variadic within a
> >I propose that the existing C mechanism be removed from Perl 6
> >and be replaced with a pragma-induced add-in function, based on
> >the semantics of C, as described in
> >the following sections.
>
> Can you please explain what's the difference between a module and a
> pr
On 15 Sep 2000 19:18:18 -, Perl6 RFC Librarian quoted Damian Conway:
>I propose that the existing C mechanism be removed from Perl 6
>and be replaced with a pragma-induced add-in function, based on
>the semantics of C, as described in
>the following sections.
Can you please explain what's t
On Mon, 18 Sep 2000, Michael G Schwern wrote:
> On Mon, Sep 18, 2000 at 12:32:08PM -0400, Sam Tregar wrote:
>
> If I grok'd the bastards, I'd write the explaination myself.
If you grok'd the bastards I bet you'd realize how useless such an
explanation would be. The chief reason for using pack/
On Mon, Sep 18, 2000 at 11:37:50AM -0700, Glenn Linderman wrote:
> > Parens are also mandatory if
> > arguments are to be passed.
>
> And I guess the balancing of the parens would solve many of the
> problems of argument parsing for the function, which is a concern to
> me. Within actual double
At this point, I think the whole thread on functions throwing
exceptions should either be:
(a) turned into an RFC
or
(b) abandoned.
This discussion is going around and around like a piece of toilet
paper in a weakly-flushing toilet.
Nat
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes:
DC> This would work:
DC> footer => sub { "$From - $To" }
DC> except there's no way of setting the $From and $To variables as
DC> each page is formatted. I don't think C by itself is the
DC> right solution for this problem, unless I add
John Porter wrote:
> Glenn Linderman wrote:
> >
> > The idea of a _normal_ situation being considered exceptional is raised when the
> > code written inappropriately handles some of the normal return values.
>
> You would throw exceptions at the problem of bad coding practice.
Not the goal. The
Perl6 RFC Librarian wrote:
> The & is mandatory.
Which makes me happy with this proposal
> Parens are also mandatory if
> arguments are to be passed.
And I guess the balancing of the parens would solve many of the problems of
argument parsing for the function, which is a concern to me. Within
Michael G Schwern writes:
> You can do it! While it seems "food" and "supermarket" are critical
> to the understanding of a shopping-cart, they're really just
> incedental. I'm saying the same thing about un/pack!
>
> If I grok'd the bastards, I'd write the explaination myself.
Please take thi
On Mon, Sep 18, 2000 at 12:32:08PM -0400, Sam Tregar wrote:
> "Describe to me how you use a supermarket shopping-cart in terms of a
> hardware store. Don't mention any words for food. Just talk about nuts
> and bolts."
"When shopping for tools, a shopping-cart is the thing you carry your
tools
On Mon, Sep 18, 2000 at 12:31:34PM -0400, Casey R. Tweten wrote:
> I think pack/unpack are perlish enough. Especially if we believe that
> printf/sprintf are perlish.
Interpolation is perlish. printf and sprintf are not. And for
similar reasons as pack/unpack. "%e a floating-point number, in
Glenn Linderman wrote:
>
> There is a difference between "undefined" and "unknown".
Can you explain this difference, briefly?
If not, could you give me something off-list?
Thanks,
John Porter
Glenn Linderman wrote:
>
> The idea of a _normal_ situation being considered exceptional is raised when the
> code written inappropriately handles some of the normal return values.
You would throw exceptions at the problem of bad coding practice.
I think it's better to correct the bad coding p
Michael G Schwern wrote:
>
> It all works.
Mokay...
> DTRT? Data Terminal Ready, Tim? Document Filing and Retrieval Tedium?
Do The Right Thing, of course.
--
John Porter
On Mon, Sep 18, 2000 at 11:20:15AM -0400, John Porter wrote:
> Seems to me that it would need to be written as
>
> $module->UNIVERSAL::require;
>
> How do you propose to avoid that?
What is a class but a package? And what is the name of a class but a
package name? And since there's no c
On 15 Sep 2000, at 11:25, Steve Fink wrote:
> Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?
While 'foo\\' ne 'foo\' :-) (specifically, the former is not a syntax error
:-)
Cheers,
Philip
Chaim Frenkel wrote:
> What about a hypothetical, use tristate. This would give undef some
> extra special powers.
There is a difference between "undefined" and "unknown".
SQL NULL, and the resultant tristate operators used in SQL, specifically is based
on NULL representing the "unknown" value.
Chaim Frenkel wrote:
> > "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:
>
> >> Neither is EOF on a file, or working with an empty list. Adding all these
> >> exceptions for non-exceptional and quite common scenerios is bothersome.
>
> I don't know where this idea of a _normal_ situation
On Mon, Sep 18, 2000 at 10:16:46AM -0400, John Porter wrote:
> Hildo Biersma wrote:
> > IMHO, mixing procedural and OO interfaces to the same module is a bad
> > idea. Promoting it in the language is not wise.
>
> O.k., but that's not the same as disallowing it. Perl is not a B&D
> language.
I
>But Tom, that preserves all the white space both before and after the '!'!
>Michael's goal is to eliminate the leading white space, although he didn
>'!' bit. So I'm not sure how you'd have written that if you'd have done
>specification.
Yeah, ok. I still think
# Your stuff that you w
Tom Christiansen wrote:
> I am certainly in strong favor of a simple and visually distinctive
> solution, and find that the leading bit helps a lot. But I would probably
> have written that as:
>
> die < !The old lie
> ! Dulce et decorum est
> ! Pro patria mori.
> P
Today around 12:32pm, Sam Tregar hammered out this masterpiece:
: On Mon, 18 Sep 2000, Michael G Schwern wrote:
:
: > Perhaps someone could attempt to write an explaination of pack and
: > unpack in completely Perl terms. No bits, no ints, no nybbles, no
: > IEEE floating point arithmetic, no p
On Mon, 18 Sep 2000, Michael G Schwern wrote:
> Perhaps someone could attempt to write an explaination of pack and
> unpack in completely Perl terms. No bits, no ints, no nybbles, no
> IEEE floating point arithmetic, no prior knowledge of C necessary.
> Those are not Perl. Scalars, arrays, hash
Simon Cozens wrote:
>
> (The deadline for collecting ideas passed two weeks ago. Why is this all
> still going on?)
Because there are still many worthy ideas which have not surfaced yet.
Which is the higher priority?
--
John Porter
We're building the house of the future together.
Nathan Wiger wrote:
>
> Huh? All classes inherit from UNIVERSAL implicitly.
Yes, but at that point in the execution, $module is not a class.
> It's the same reason you can write:
>
>$module->can('dance');
Once upon a time this was not possible. I guess it has changed.
--
John Porter
From: Tom Christiansen [mailto:[EMAIL PROTECTED]]
> From: Garrett Goebel
> > There seems to be some general consensus that some people
> > would like to be able to short-circuit functions like
> > grep. Do you see no need for the code
> > block equivalent of C/C/C?
>
> What, you mean like
>
>
John Porter wrote:
>
> > As a solution, a UNIVERSAL:::require() method can be added with the following
> > syntax:
> >
> > $module = "Some::Module";
> > $module->require;
>
> Seems to me that it would need to be written as
>
> $module->UNIVERSAL::require;
>
> How do you propose
Michael G Schwern wrote:
>
> Perhaps someone could attempt to write an explaination of pack and
> unpack in completely Perl terms. No bits, no ints, no nybbles,
Uh huh... Are you prepared to write an explanation of Perl arrays
without making any mention of Perl scalars?
--
John Porter
> As a solution, a UNIVERSAL:::require() method can be added with the following
> syntax:
>
> $module = "Some::Module";
> $module->require;
Seems to me that it would need to be written as
$module->UNIVERSAL::require;
How do you propose to avoid that?
> What should happen if
Tom Christiansen wrote:
>
> And what if it's a built-in? What if it's not quite a built-in,
> but an import? What if you don't *know* whether it's a built-in?
I would hope that the distinction (at the syntactic level) goes away.
(Except for the small set of exceptional built-ins, which clearly
At 04:04 PM 9/18/00 +0100, Simon Cozens wrote:
>On Mon, Sep 18, 2000 at 10:51:52AM -0400, John Porter wrote:
> > I would think that if it could be done at all,
> > it would only be in extension (formerly XS) code.
>
>Why? I don't want to go to C just to add a flag to a variable. That smacks of
>ma
>From: Tom Christiansen [mailto:[EMAIL PROTECTED]]
>> From: Jarkko Hietaniemi
>>
>> >I find this urge to push exceptions everywhere quite sad.
>>
>> Rather.
>>
>> Languages that have forgotten or dismissed error returns, turning
>> instead to exceptions for everything in an effort to make the c
From: Tom Christiansen [mailto:[EMAIL PROTECTED]]
> From: Jarkko Hietaniemi
>
> >I find this urge to push exceptions everywhere quite sad.
>
> Rather.
>
> Languages that have forgotten or dismissed error returns, turning
> instead to exceptions for everything in an effort to make the code
> "sa
On Mon, Sep 18, 2000 at 10:51:52AM -0400, John Porter wrote:
> Are all the possible attributes going to be predefined, or can the
> user define new ones?
The user should be able to do anything they damn well like. This is,
allegedly, Perl, which means it's about making it easy to do what the
pro
>> foo->bar($baz, $coon)
>> should be made synonymous with
>> foo->bar $baz, $coon
>>
>> I can see no ambiguity in this call, but it not always works with Perl5.
Arrow invocation does not a listop make. Only indirect object invocation
style does that.
print STDOUT $foo, $bar, $glarch;
Nathan Wiger wrote:
> > This RFC proposes to remove indirect object syntax
>
> Please show me how to write:
>
>print STDERR @stuff;
>
> without it, while keeping it a method of the STDERR filehandle, and
> without requiring ->.
Hopefully STDERR as a "filehandle" is going away. Assuming it
> 'foo'->bar($baz)
>
> looks visually clattered, but C> looks as if it expresses
> its meaning. The default choice is done so that if you need other
> choice, your code does not look artificial.
Hear, hear!
> foo->bar($baz, $coon)
>
> should be made synonymous with
>
> foo
Peter Scott wrote:
>
> How about an attribute for hashes:
>
> my %foo : fixed;
Has anyone talked about the ability to access the
attributes attached to a variable?
Are all the possible attributes going to be predefined, or can the
user define new ones? I would think that if it coul
[This somewhat elderly draft was found lying about an edit
buffer, but I do not believe it was ever sent yet.]
>Now, the possibility to either pass individual scalars to a sub, or an
>array, (or several arrays, or a mixture of arrays and scalars) and Perl
>treating them as equivalent, t
Hildo Biersma wrote:
>
> Look, there's a reason we have objects - they encapsulate state. If a
> module supports objects and procedural calls, in the latter case it will
> either need a handle to the state (objects by anoither name), or will
> store the state internally. If the module stores th
Hildo Biersma wrote:
> > > I think such modules are a bad idea, because their functionality is
> > > typically restricted.
>
> An example of this is the CGI module.
You consider CGI.pm an example of a module with restricted functionality?
> IMHO, mixing procedural and OO interfaces to the same
On Mon, 18 Sep 2000 01:22:31 -0600, Tom Christiansen <[EMAIL PROTECTED]> wrote:
> Surely the next request will be to make anything that works outside
> of quotes work inside of them, completely erasing the useful visual
> distinction. Why should operators, after all, be any different
> from funct
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
> This and other RFCs are available on the web at
> http://dev.perl.org/rfc/
>
> =head1 TITLE
>
> Objects: C pragma
>
> =head1 VERSION
>
> Maintainer: Damian Conway <[EMAIL PROTECTED]>
> Date: 14 September 2000
> Mailing List: [EMAIL PRO
> >print format $fmt, @stuff;
>
> Early brain-dump. This should be it.
That's what I've done for the second version (on its way soon).
Damian
On Fri, 15 Sep 2000 20:13:34 -0700, Nathan Wiger <[EMAIL PROTECTED]> wrote:
> > I loathe the indirect object syntax.
>
> Well that makes one of us! ;-)
>
> > Easy. Put them in a subroutine:
> >
> > sub format1 { format $template1, @data };
> > sub format2 { print STDERR format $
On Mon, Sep 18, 2000 at 01:16:43AM -0600, Tom Christiansen wrote:
> Huh? And what if it's a built-in? What if it's not quite a built-in,
> but an import? What if you don't *know* whether it's a built-in?
Easy enough, built-ins shouldn't be special (I'm speaking in general,
not just when interp
Surely the next request will be to make anything that works outside
of quotes work inside of them, completely erasing the useful visual
distinction. Why should operators, after all, be any different
from functions?
print "I have Fooey->fright($n) frobbles.\n";
print "I have &snaggle($n)
>Subroutines calls should interpolate in double-quoted strings and similar
>contexts.
>print "Sunset today is at &sunset($date)";
>interpolates to:
>print 'Sunset today is at '.sunset($date);
Huh? And what if it's a built-in? What if it's not quite a built-in,
but an import? What if
On Sun, Sep 17, 2000 at 11:22:36PM -0700, Nathan Wiger wrote:
> We should probably consider a UNIVERSAL::import too, perhaps to either
> take over Exporter's or at least make sure things work right. In
> particular I'm thinking in the context of a couple RFC's:
>
>RFC 74 (v3): Proposal to ren
73 matches
Mail list logo