Re: The trouble with awesome

2012-06-04 Thread Peter Scott
rest were sysadmins). Now the landscape looks very different. -- Peter Scott

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-10-01 Thread Peter Scott
iolated the separation of thingummy (my terminology isn't so good here, I trust you know what I mean). I don't know how you solve this but please think about this use case. Of course not every object can or should be serialized but elective object persistence is pretty important.

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

2010-04-12 Thread Peter Scott
eld in the Unicode tables, right?) Also, what happens when code gets run through mailers or other programs that think a hyphen is an acceptable place to break a line? Does the code still work after copy and paste with that newline inserted? -- Peter Scott http://www.perlmedic.com/ http://w

Re: RFD: Built-in testing

2009-01-21 Thread Peter Scott
Clintonesque parsing when it encounters the token. Okay. But how do I justify the new syntax to a student? What are they getting that makes up for what looks like a fall in readability? -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-21 Thread Peter Scott
ion in reading code. Even if subconsciously, even if measured in milliseconds, I contend that is important. Just because some other languages do it doesn't mean Perl should, unless you know of some studies showing that readability hasn't been impaired. I'm willing to be surprised. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

RE: Allowing '-' in identifiers: what's the motivation?

2008-08-13 Thread Peter Scott
ho give up on reading the other people's programs. I'm all for giving people enough rope to either hang themselves or make a hammock, but do we really want to open this can of worms? -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Standards bearers (was "Re: xml and perl 6")

2007-12-03 Thread Peter Scott
value judgments and we don't like to make those and people will argue about their decisions no matter what, but does that have to stop us? [1] http://groups.google.com/group/perl.perl5.porters/msg/74ecce32ff1ad845?dmode=source -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Web Module (Was: Perl6 new features)

2007-06-26 Thread Peter Scott
6 for OS and embedded systems integrators -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Web Module (Was: Perl6 new features)

2007-06-25 Thread Peter Scott
tinue the tradition of tending to err on the side of "practical" over "elegant". It may not seem rational that avoiding the need to type "cpan Foo::Bar" makes a huge difference, but I believe it does, for certain modules. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Generalizing ?? !!

2007-06-23 Thread Peter Scott
On Fri, 22 Jun 2007 15:40:37 +0100, Aaron Crane wrote: > Peter Scott writes: >> can someone tell me why you can't just use && ... || in place of ?? >> ... !!, now that && and || propagate context to both sides? > > You get the wrong result when the antece

Re: Generalizing ?? !!

2007-06-22 Thread Peter Scott
ey be made so? pugs> my $a = 42; (1 && $a) = 17; *** Can't modify constant item: VInt 42 pugs> my $b = 42; ($b || 0) = 17; *** Can't modify constant item: VInt 42 -- Peter Scott

Re: handling undef - second draft

2005-12-18 Thread Peter Scott
empty array to die by default. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: type sigils redux, and new unary ^ operator

2005-11-23 Thread Peter Scott
like that, so why is it cropping up that much in P6? -- Peter Scott

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

2004-10-20 Thread Peter Scott
ke of genius. This conjured up an image of Larry whacking someone with a coelacanth... -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/

Re: A thought for later -- POD tables

2004-08-21 Thread Peter Scott
... -- Peter Scott

RE: This week's summary

2004-01-06 Thread Peter Scott
to get eurselves a Larry. Just put Damian on it, and there'll be a Lingua::EU::ConstitutionGenerator by Christmas. Probably with a back door making him king with droit du seigneur option in perpetuity. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/

Re: Continuations for fun and profit

2002-07-08 Thread Peter Scott
closures, we >can do this from wherever we like in the program. So if you could serialize a continuation, you could freeze your program state to disk and restore it later? Cool, makes for easy checkpoint/restarts. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/

Re: Perl 6 Summary

2002-07-03 Thread Peter Scott
l_2001.html Or if you like: http://www.yetanother.org/damian/Perl5+i/coroutines.html -- Peter Scott Pacific Systems Design Technologies

Re: eval {} or carp "blah: $@"

2002-05-02 Thread Peter Scott
At 02:33 PM 5/2/02 -0600, Jim Cromie wrote: >eval {} or carp "$@ blah"; > >it seems to work, and it reads nicer (to my eye) than > >eval {}; if ($@) {} % perl -le 'eval { print "No exceptions here"; 0 } or warn "$@ blah"' No exceptions her

Re: Loop controls

2002-04-29 Thread Peter Scott
ting into the language something which will get very little use, except that a few people will no doubt enjoy it and insist they can't live without it? I'm starting to wonder whether some features should be optional... use extended qw(loop_syntax); -- Peter Scott Pacific Systems Design Technologies

Re: Loop controls

2002-04-29 Thread Peter Scott
and undef or empty list for loops that didn't execute at all). Which means that some loops could execute and still be false. Is this hopelessly retrograde thinking? Are the hordes of programmers yet-to-be that will be weaned exclusively on Perl 6 look scornfully on me for such opin

Re: Ex4 smart match question

2002-04-06 Thread Peter Scott
t do @left =~ @right %left =~ %right do? One can imagine useful default interpretations that are not commutative. -- Peter Scott Pacific Systems Design Technologies

Re: rethinking printf

2002-03-10 Thread Peter Scott
#x27;s a constant, but not if you're doing something like printf "#.3f " x @nums, @nums; and @nums is empty. You could always scan the format for a %-specifier which was valid under the old rules and warn that they seem to be using retro syntax. # bespeaks a number-type of thi

Re: Barewords and subscripts

2002-01-27 Thread Peter Scott
bout how Perl 6 should be easier to parse, and this issue is the poster child for the "Only perl can parse Perl" camp. Does the price of easier parseability have to be "oatmeal mixed with fingernail clippings"? -- Peter Scott Pacific Systems Design Technologies

Re: Barewords and subscripts

2002-01-26 Thread Peter Scott
At 05:43 PM 1/26/02 +, Simon Cozens wrote: >On Sat, Jan 26, 2002 at 09:28:18AM -0800, Peter Scott wrote: > > >%foo{"bar"} > >It's bare, and it's a word. Maybe you want to come up with another term to describe it then... but it isn't a &

Re: Barewords and subscripts

2002-01-26 Thread Peter Scott
yes, because then we could treat >*all* instances of {...} as a block returning either a closure, a value >for subscripting, or an anonymous hash, rather than having to decide at >tokeniser time. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Per-object inheritance in core a red herring?

2001-06-30 Thread Peter Scott
did, it might be really slow. > > Somebody should write an implementation first, and then tackle efficiency. > >This is a joke, right? I'm on Candid Camera. I think people are just surprised that you didn't call it Red::Herring. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Multiple classifications of an object

2001-06-25 Thread Peter Scott
s" relationship, >but that doesn't feel much better. Its just another >way of programming round a weakness in the object >models of most mainstream languages > >Can anyone see any problems with making C and >C work with lists? C is not effected. We >might want some magi

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread Peter Scott
ill don't think there's anything to be gained here. As far as I can tell, you're saying, "I want it to be easier to express relational database operations." Me too. I just don't think they get any easier than they already are. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread Peter Scott
At 06:06 PM 6/10/2001 -0500, Me wrote: >Dataset from multiple 'joined' tables > > (A pair of joined tables can be visualized as two > spreadsheet like grids that intersect at right angles > with the intersection point being the joined column. > The vertical slice picks out rows whe

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread Peter Scott
At 05:58 PM 6/10/2001 -0400, Sam Tregar wrote: >SQL via DBI. It's got a terrible learning curve but it's still around for >a reason. You learn all about SQL's strengths if you start trying to >replace it with arrays and hashes. Go forth and learn! He's right. I do a lot of DBI stuff with Orac

Re: Properties and stricture

2001-06-05 Thread Peter Scott
At 02:39 PM 6/5/2001 -0700, Daniel S. Wilkerson wrote: >Thank you, that's what I thought it might be. This can be done at compile >time with a two-stage >compilation. The first one writes the code that the second >compiles. Then the checking can be >done during the second stage. Not when the

Re: Properties and stricture

2001-06-05 Thread Peter Scott
. Of those, only subroutine refs and automatic method generation look like must-haves for major projects, which are willing to surrender some of the cute stuff in return for stability. Quite how Foo prevents Bar from causing shenanigans if Bar was used first, I don't know; might not be possible until runtime. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Slice refs

2001-05-20 Thread Peter Scott
At 01:31 PM 5/21/2001 +1000, Damian Conway wrote: >> Um, this is a tiny little diversion here prompted by something that >> came up on perl-beginners, of all places... it's not possible in >> perl 5 to make a reference to an array or hash slice without doing >> some copying. >>

Slice refs

2001-05-20 Thread Peter Scott
and I haven't grokked that from the exegeses yet. That's it. We now return you to the Clinton discussion ("it depends what the meaning of 'is' is...") -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Exegesis2 and the "is" keyword

2001-05-16 Thread Peter Scott
, yet this usage might suggest to many people that they can be changed at run time. If you see what I mean. I'm sure I could get used to it, I'm just speaking to learnability. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Must pseudo-hashes die?

2001-05-15 Thread Peter Scott
d accept the other features it provides. I'd like to see this in Perl 6. I detest the pseudo-hash implementation (the part that's exposed to the user, I mean). -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Apoc2 - concerns

2001-05-08 Thread Peter Scott
ent. (It also >tends to pessimize linkage into pseudo-variadic languages like C.) Um, how do you know for sure a subroutine isn't variadic? Even if it has a fixed-length prototype, is Perl smart enough to know that it can't be called as an object method, bypassing prototype

Re: So, we need a code name...

2001-05-06 Thread Peter Scott
frozen. It's not what I'd call a positive image :-) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: So, we need a code name...

2001-05-06 Thread Peter Scott
> > AMD's "Duron". *shrug* > >"durian". You want to name it after a fruit smelling of dead cows and sewer gas? -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Apoc2 - concerns

2001-05-05 Thread Peter Scott
At 01:51 AM 5/6/01 +0100, Simon Cozens wrote: >The debate rages on: Is Perl Bactrian or Dromedary? It's a Dromedary, it says so in the Colophon. But maybe the symbol of Perl 6 should be a Bactrian, with the extra hump symbolizing the increased power. You knew this was coming...

Re: Strings vs Numbers (Re: Tying & Overloading)

2001-04-24 Thread Peter Scott
At 09:06 PM 4/24/2001 -0700, Larry Wall wrote: >Edward Peschko writes: >: Ok, so what does: >: >: my %hash = ( 1 => 3); >: my $hash = { 1 => 4}; >: >: print $hash{1}; >: >: print? > >4. You must say %hash{1} if you want the other. I was teaching an intro class yesterday and as usual, there were

Re: Parsing perl 5 with perl 6 (was Re: Larry's Apocalypse 1)

2001-04-16 Thread Peter Scott
At 02:33 PM 4/16/01 -0400, Dan Sugalski wrote: >At 09:47 AM 4/16/2001 -0700, Peter Scott wrote: >>As a very low-tech solution, why not bundle perl 5 *with* perl 6 so that >>once perl 6 detects that it's been fed perl 5 code, it can send it to the >>perl 5 compiler/i

Re: Parsing perl 5 with perl 6 (was Re: Larry's Apocalypse 1)

2001-04-16 Thread Peter Scott
not going to. As a very low-tech solution, why not bundle perl 5 *with* perl 6 so that once perl 6 detects that it's been fed perl 5 code, it can send it to the perl 5 compiler/interpreter. Yeah, I know it makes the resulting bundle huge, but at least it separates the tasks of parsing perl5

RE: Larry's Apocalypse 1

2001-04-10 Thread Peter Scott
closest mirror, of course. > >Would be interesting, but is probably bloatware... It should by default use a local cache, of course. I suppose if you're running it as root it should do a perl -MCPAN -e 'install HTML::Module'. I seem to have misplaced my security hat... -- Peter Scott Pacific Systems Design Technologies

Re: Larry's Apocalypse 1

2001-04-09 Thread Peter Scott
y the time people learned to use '-6' we'd have Perl 7 out. > >I'm still trying to figure out why the flag needs to change. What's wrong >with -e? It seems perfectly serviceable. Because Larry said that by default Perl 6 would assume that its input was in Perl

Re: Larry's Apocalypse 1

2001-04-09 Thread Peter Scott
7; flag? At >the very least, I want a short flag! But by the time people learned to use '-6' we'd have Perl 7 out. Whatever we come up with, let's figure out how to avoid having to change it the next time we change Perl. -- Peter Scott Pacific Systems Design Technologies

Re: Apocalypse 1 from Larry

2001-04-05 Thread Peter Scott
nt. I could argue that I don't see strictures as 'morality', and I think that's just an accidental consequence of the name; suppose it had been called 'use salvation' instead? But there's no way to win a values debate. -- Peter Scott Pacific Systems Design Technologies

Re: Larry's Apocalypse 1

2001-04-05 Thread Peter Scott
from blown minds after learning how fast he wrote the thing. Oh, and who put him up to that, eh? -- Peter Scott Pacific Systems Design Technologies

Re: Schwartzian Transform

2001-03-26 Thread Peter Scott
At 10:50 AM 3/26/2001 -0500, Uri Guttman wrote: > > "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: > > SC> Why can't Perl automagically do a Schwartzian when it sees a > SC> comparison with complicated operators or functions on each side of > SC> it? That is, @s = sort { f($a) <=> f($

Re: Distributive -> and indirect slices

2001-03-19 Thread Peter Scott
At 03:18 PM 3/19/01 +, Simon Cozens wrote: >That's not really nuts. Really nuts would be suggesting that all operators >should distribute: > > @a = ($foo, $bar) . $baz # @a = map { $_.$baz } ($foo, $baz) > >Mmmm. I could get to like that. Seen http://dev.perl.o

Re: Warnings, strict, and CPAN (Re: Closures and default lexical-scope for subs)

2001-02-22 Thread Peter Scott
At 09:36 AM 2/22/2001 +, David Grove wrote: >This is what's scaring me about all this talk about >exceptions... it can break this mold and make Perl into a "complainer >language" belching up uncaught (don't care) exceptions forcing try/except >blocks around every piece of IO or DB handling. Th

Re: Warnings, strict, and CPAN (Re: Closures and default lexical-scope for subs)

2001-02-21 Thread Peter Scott
htened by the prospect of anyone programming with a mindset that warnings are okay, and even more by the philosophy that we should cater more to them than more careful people. What if the warnings were: 1/100 chance of destroying your files at this point... you win! 1/100 chance of producing incorrect output at this point... you win! 1/100 chance of losing user data at this point... you win! ... What if the warnings boiled down to that anyway? -- Peter Scott Pacific Systems Design Technologies

Re: Closures and default lexical-scope for subs

2001-02-20 Thread Peter Scott
At 05:27 PM 2/19/01 +, Piers Cawley wrote: >Peter Scott <[EMAIL PROTECTED]> writes: > > I don't want to DWIM this. Would it be so bad to have to type > > > > GetOptions (foo => \my ($foo), > > bar => \my $bar); > >If

Re: The binding of "my" (Re: Closures and default lexical-scope

2001-02-18 Thread Peter Scott
At 12:12 PM 2/18/2001 +0100, Bart Lateur wrote: >On 17 Feb 2001 20:53:51 -0800, Russ Allbery wrote: > > >Could > >people please take the advocacy traffic elsewhere where it isn't noise? > >Advocacy is noise everywhere. Not on [EMAIL PROTECTED] (http://lists.perl.org/showlist.cgi?name=advocacy)

Re: Warnings, strict, and CPAN (Re: Closures and default lexical-scope for subs)

2001-02-16 Thread Peter Scott
At 09:56 AM 2/16/2001 -0500, John Porter wrote: > > As for the -q thing, I think it is far *less* of a burden to add "use > > strict" and "use warnings" when you're writing a big piece of code. When > > you're writing 5 lines, every extra character counts. When you're > > writing 500 or 5000 lines

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Peter Scott
7;t want to DWIM this. Would it be so bad to have to type GetOptions (foo => \my ($foo), bar => \my $bar); tie my ($shoe) => $tring; if we made 'my' consistent with all other functions that take lists (yes-I-know-it's-not-a-function)? -- Peter Scott Pacific Systems Design Technologies

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Peter Scott
ead the archives... I am the wrong person to ask for a statement of the opposing viewpoint... -- Peter Scott Pacific Systems Design Technologies

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Peter Scott
the additional connotation that implies >'no strict', and 'no warn'. no 'warnings' > Seems simple enough to me. Yes, that's what I thought; but this has generated more heat than light, at least on the times I've brought it up, e.g., http:[EMAIL PROTECTED]/msg00025.html Better get the asbestos underwear ready. -- Peter Scott Pacific Systems Design Technologies

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Peter Scott
At 11:49 AM 2/15/01 -0800, Randal L. Schwartz wrote: > >>>>> "Peter" == Peter Scott <[EMAIL PROTECTED]> writes: > >Peter> Quite. But on a tangent, I see no good reason why this shouldn't be >Peter> given the same interpretation as "my

Re: Closures and default lexical-scope for subs

2001-02-15 Thread Peter Scott
enough controversy I can also ask about things which are labelled as both functions and operators :-) -- Peter Scott Pacific Systems Design Technologies

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-13 Thread Peter Scott
bility since the declaration is decoupled from the reason - sub AUTOLOAD - for it being there), but the point still stands. -- Peter Scott Pacific Systems Design Technologies

Re: End-of-scope actions: Background.

2001-02-13 Thread Peter Scott
trying to claim credit for RFC 70 here. >http://dev.perl.org/rfc/70.html >http://dev.perl.org/rfc/80.html >http://dev.perl.org/rfc/151.html -- Peter Scott Pacific Systems Design Technologies

Re: End-of-scope actions: Background.

2001-02-13 Thread Peter Scott
), albeit in with a messy error. >OK, script crashing with an uncaught exception isn't nice, but it's nicer >than silently losing data IMHO. I think you'll find this addressed already in RFCs 70, 80, and 151. At least, that was my intention. http://dev.perl.org/rfc/70.html http://dev.perl.org/rfc/80.html http://dev.perl.org/rfc/151.html -- Peter Scott Pacific Systems Design Technologies

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-13 Thread Peter Scott
ally seen any code that makes use of it. I have grown somewhat tired of writing, and teaching, "return if $AUTOLOAD =~ /:DESTROY$/", however. -- Peter Scott Pacific Systems Design Technologies

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Peter Scott
or >tar/gzip or other? Eh? I thought PPM was simply "perl -MCPAN -e install" for Windows users, pointed to a set of modules which have XS content that they'd had to fiddle with to port to Win32. -- Peter Scott Pacific Systems Design Technologies

Re: assign to magic name-of-function variable instead of "return"

2001-02-07 Thread Peter Scott
At 05:07 PM 2/7/01 -0500, John Porter wrote: >Peter Scott wrote: > > Sorry, I wasn't clear. Let me rephrase. The 'try' helps me determine > that > > the following block is going to be subject to exception handlers which > will > > immediately foll

Re: assign to magic name-of-function variable instead of "return"

2001-02-07 Thread Peter Scott
At 02:17 PM 2/7/01 -0500, John Porter wrote: >Peter Scott wrote: > > > > I want the 'try' there for my sake, not Perl's; ... it > > helps alert me that the following block is subject to non-local control > > flow rules. > >Huh? Down t

Re: assign to magic name-of-function variable instead of "return"

2001-02-07 Thread Peter Scott
ubject to non-local control flow rules. I'd rather have the 'try' there for the same reason I want to see the 'do' in "do { ... } while ..." (well, leaving aside the fact that it would be unparseable without it). But I certainly understand your preference. -- Peter Scott Pacific Systems Design Technologies

Re: Really auto autoloaded modules

2001-02-06 Thread Peter Scott
At 08:44 AM 2/6/01 +, Simon Cozens wrote: >On Mon, Feb 05, 2001 at 11:04:06PM -0500, Dan Sugalski wrote: > > Granted, if this was all done with trusted servers it would be really neat, > > but... > >TANSTAATS. Not even with the appropriate amount of PKI/X.509 hand-wav

Re: a name for the currently executing sub

2001-02-05 Thread Peter Scott
in C style casting capability, with all the evil that brings >with it, including the ability to bittwiddle perl structures from >within perl, which is a feature migrating C programmers miss. This migrated C programmer misses it like intestinal flu. Can you come up with one remotely useful example? -- Peter Scott Pacific Systems Design Technologies

Re: assign to magic name-of-function variable instead of "return"

2001-02-01 Thread Peter Scott
> >or fname could be used instead of rval all through it. Ah, an homage to Pascal :-) -- Peter Scott Pacific Systems Design Technologies

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-28 Thread Peter Scott
language@perl.org/index.html http://www.mail-archive.com/perl6-internals@perl.org/index.html Although I cannot find an article referring to what you mention. It does sound familiar though. -- Peter Scott Pacific Systems Design Technologies

Re: Expressions and binding operator

2000-12-20 Thread Peter Scott
At 11:39 PM 12/20/00 +, Nicholas Clark wrote: >On Wed, Dec 20, 2000 at 03:36:48PM -0800, Peter Scott wrote: > > Should this second paragraph still be true for Perl 6? I have at times > > wanted to do something of the form > > > > perl -lwe '$x = "x";

Expressions and binding operator

2000-12-20 Thread Peter Scott
ted to make the right argument an expression to be interpreted as a search pattern (since I have qr//). -- Peter Scott Pacific Systems Design Technologies

Re: What will the Perl6 code name be?

2000-10-24 Thread Peter Scott
At 01:10 PM 10/24/00 +0200, Philip Newton wrote: >On 23 Oct 2000, at 15:40, Peter Scott wrote: > > What about introducing a pragma which either (a) promises not to use such > > things, or (b) throws an exception if the program does use such > constructs, > > and say "

Re: What will the Perl6 code name be?

2000-10-23 Thread Peter Scott
ch constructs, and say "if you want your programs to be compilable (or compile to something a heck of a lot lighter), say 'use strict "compilation"' or whatever"? -- Peter Scott Pacific Systems Design Technologies

Re: Why does atan2 take 2 arguments?

2000-10-17 Thread Peter Scott
could anybody please >explain it. If not, I'd like to suggest to skip the 2nd argument. Consider how to generate the right result when the slope is infinite. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 357 (v2) Perl should use XML for documentation instead of POD

2000-10-05 Thread Peter Scott
At 01:38 PM 10/5/00 -0400, Dan Sugalski wrote: >On Thu, 5 Oct 2000, John Porter wrote: > > > Peter Scott wrote: > > > the idea is to be an extension of Larry's creative thinking > > > process. Neither of us is deciding what goes into Perl 6, and > neither i

Re: RFC 357 (v2) Perl should use XML for documentation instead of POD

2000-10-04 Thread Peter Scott
ce. A brainstorming process can be wonderfully enhanced by the introduction of contradictory or even nonsensical ideas. Not that I would have intentionally done so myself. But great ideas have sprung from the unorthodox thoughts provoked by such things. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 357 (v1) Perl should use XML for documentation instead of POD

2000-10-03 Thread Peter Scott
nd good tool support (e.g. emacs modes). Arrgh, you're giving me WEB flashbacks... I nearly went blind trying to read that stuff... As I said earlier, why don't we just define a syntax for *anything* to be used as an extension language, and let the, er, market decide? -- Pete

Re: Variable attributes (was Re: RFC 355 (v1) Leave $[ alone.)

2000-10-02 Thread Peter Scott
ent from the type of thing it contains. But what syntax will you use? If I make one up for the sake of illustration: my DogPound(Dog) @kennel :homeless; then @kennel->municipality, but $kennel[37]->breed. Make sense, or should I just go back to bed? -- Peter Scott Pacific Systems Design Technologies

Re: Variable attributes (was Re: RFC 355 (v1) Leave $[ alone.)

2000-10-02 Thread Peter Scott
what if SomeType was like "int", and you were just >trying to assert that each individual element was going to be SomeType? > >If these problems were resolved, then I must admit to having a perverse >softspot for being able to say: > > my packed @bits :long; &g

Re: Variable attributes (was Re: RFC 355 (v1) Leave $[ alone.)

2000-10-02 Thread Peter Scott
ble to call object methods on it distinct from its members, no? So arrays and hashes could be objects too. Hmm, am I saying that I should be able to write @array->method()? There again, maybe it's just this head cold I've got. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 357 (v1) Perl should use XML for documentation instead of POD

2000-10-02 Thread Peter Scott
F boundary=VERYLONGSTRINGYOUGETTHEIDEA ... SDF ... VERYLONGSTRINGYOUGETTHEIDEA ... perl ... Not that this should stop us from improving POD as well... -- Peter Scott Pacific Systems Design Technologies

Re: Variable attributes (was Re: RFC 355 (v1) Leave $[ alone.)

2000-10-01 Thread Peter Scott
At 04:53 PM 10/1/00 -0400, Dan Sugalski wrote: >At 11:33 AM 10/1/00 -0700, Peter Scott wrote: >>But, setting aside my visceral reaction to changing array bases, you have >>precisely the same problem here that has scuppered my intent to file an >>RFC for hashes with fixed k

Re: Variable attributes - Object-oriented

2000-10-01 Thread Peter Scott
rator. Bearing in mind that a highly desirable extension would be user-defined variable attributes. -- Peter Scott Pacific Systems Design Technologies

Re: Variable attributes (was Re: RFC 355 (v1) Leave $[ alone.)

2000-10-01 Thread Peter Scott
re that has scuppered my intent to file an RFC for hashes with fixed keys; how do you apply the attribute to anonymous, let alone autovivified, arrays? If I say my @a :base(1); then what of $a[1][1]? How to specify that the second level array also has a base of 1? Without it looking really ugly? -- Peter Scott Pacific Systems Design Technologies

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-20 Thread Peter Scott
ould use objects instead, but that's hardly the point.) I have been unable to come up with a lightweight syntax for saying that the second-level hash keys should be fixed. I supplicate the gods of new syntax for any succor they may render in my hour of need. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 263 (v1) Add null() keyword and fundamental data type

2000-09-20 Thread Peter Scott
late undef to IS NULL when constructing queries, and DBI handily turns NULLs into undefs in results for me. If this is not about DBMS interfacing but you want Perl to implement SQL expression semantics, why? What possible benefit is there? -- Peter Scott Pacific Systems Design Technologies

Re: RFC 263 (v1) Add null() keyword and fundamental data type

2000-09-19 Thread Peter Scott
WHERE foo IN (NULL)". You'd think that would be the same as "WHERE foo IS NULL", but n, we're talking about SQL here. (At least the Oracle brand of it.) Let's not venture one inch down that path. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Peter Scott
g the NUL character, although of course an empty string actually is terminated by the NUL character, but you don't put it in..." -- Peter Scott Pacific Systems Design Technologies

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-17 Thread Peter Scott
At 06:49 PM 9/17/00 -0400, Michael G Schwern wrote: >On Sun, Sep 17, 2000 at 03:37:07PM -0700, Peter Scott wrote: > > However, while we've got ways in P6 to do objects better without > > pseudo-hashes, a major benefit of them to me is nothing to do with > objects, > &

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-17 Thread Peter Scott
quats => 42); would be allowed. So can we keep the option for fixed keys somehow? -- Peter Scott Pacific Systems Design Technologies

Re: Drop here docs altogether? (was Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs))

2000-09-14 Thread Peter Scott
lly much rather see a new qh// "quoted here doc" >operator that solves these problems than trying to jam them all into the >existing shell-like syntax, which is a leftover oddity, really. -- Peter Scott Pacific Systems Design Technologies

Re: Conversion of undef() to string user overridable for easy debugging

2000-09-13 Thread Peter Scott
arch for this sentinel string. > >I must admit that apart from easy debugging, this feature would hardly >serve any other practical purpose. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 216 (v1) POD should tolerate white space.

2000-09-13 Thread Peter Scott
ed; it's RFC 93, "Regex: Support for incremental pattern matching". It has everything in there, it just might benefit from explicitly saying, "This is how people who want $/ to be a regex can get what they want" even though it may not be called $/ in Perl 6. -- Peter Scott Pacific Systems Design Technologies

Re: RFC 216 (v1) POD should tolerate white space.

2000-09-13 Thread Peter Scott
y be considered independently. *Applause* There is no RFC on it unless it is hopelessly mistitled. This is something I've wanted for a long time. Someone working on the RFC? -- Peter Scott Pacific Systems Design Technologies

Re: $a in @b

2000-09-12 Thread Peter Scott
e another? That's what my idea was, to provide a second argument. Also, shouldn't be necessary to label a loop if you don't have another one inside it, although if you did, it would avoid the embarrassment of "last undef, 'foo'" that fell out of my suggestion. -- Peter Scott Pacific Systems Design Technologies

Re: $a in @b

2000-09-11 Thread Peter Scott
next does not include any return value, so what should it be? Of course, if it's false, you didn't need a next in the first place and if it's true you didn't need a grep in the first place :-) -- Peter Scott Pacific Systems Design Technologies

  1   2   3   >