Re: Idea

2002-05-22 Thread Michael G Schwern
On Wed, May 22, 2002 at 10:14:17AM -0700, Chris Angell wrote: I have an idea for the int() function. I think it would be cool if it returned false/undefined when the argument passed to it is a whole number. For example: int(1) or print argument passed to int() is something other than a

Re: Backslashes

2002-05-21 Thread Michael G Schwern
On Tue, May 21, 2002 at 11:03:42AM +0100, Nicholas Clark wrote: I believe that the correct rule for single quote context in perl should have been that backslash followed by anything is that thing. That leaves Win32 users stuck in the same rut as now: print

Re: Methods, and such

2002-05-16 Thread Michael G Schwern
On Wed, May 15, 2002 at 07:38:12PM -0600, root wrote: #BTW, is there some standard way of creating instances #now? Class::Classless and Class::Prototyped off the top of my head.

Re: Regex and Matched Delimiters

2002-04-23 Thread Michael G Schwern
matches all three lines. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Consistency? I'm sorry, Sir, but you obviously chose the wrong door. -- Jarkko Hietaniemi in [EMAIL PROTECTED]

Re: Night of the Living Lexical (sequel to Apoc4: The loop keywor d)

2002-01-21 Thread Michael G Schwern
: use strict; if my $bar = bar() { ... } $bar = baz(); # just fine, since it was declared above. no error. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Fuck with me

Re: Apoc4: The loop keyword

2002-01-21 Thread Michael G Schwern
lexical scoping all over the place. A lot of that fakery can be removed from the language, yes, but in the case of block conditions it seems that DWIMery should win over orthoginality. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Re: Apoc4: The loop keyword

2002-01-20 Thread Michael G Schwern
: while( my $line = FILE ) { ... } Will it be: while FILE - $line { ... } or do we have to start wrapping things up? And then there's this one: if( my $foo = bar() ) { ... } how would that be written? -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Does this mean we get Ruby/CLU-style iterators?

2002-01-19 Thread Michael G Schwern
} or is that what you ment by ignoring parser issues? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Death was thought to be fatal. -- Craig A. Berry in a05101002b8165afc6b62@[172.16.52.1]

Perl 6, now with 50% more NATO!

2002-01-19 Thread Michael G Schwern
in [EMAIL PROTECTED] which, of course, we'll have in Perl 6: loop { .search .DESTROY; } Larry Wall: puppet of the military-industrial complex? Next on The Conspiracy Zone. ;) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance

Does this mean we get Ruby/CLU-style iterators?

2002-01-18 Thread Michael G Schwern
$caller = caller; File.foreach('/usr/dict/words') { print $caller eq caller ? ok : not ok } be ok or not ok? It has to be ok if mywhile is going to emulate a while loop. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance

Re: Ex4, Apo5, when ?

2002-01-18 Thread Michael G Schwern
lacking connectivity. I expect he'll give us word at some point what the schedule is. They've got connectivity all right. We've been getting plenty of drunken ramblings on IRC from folks on the cruise. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality

Re: Perl 6's Exporter

2001-12-24 Thread Michael G Schwern
::export_to_level(...); } -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Plus I remember being impressed with Ada because you could write an infinite loop without a faked up condition. The idea being

Re: Perl 6's Exporter

2001-12-22 Thread Michael G Schwern
on the above. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One This is my sig file. Is it not nify? Worship the sig file. http://www.sluggy.com find /usr/local/share/perl/ /usr/share

Re: Perl 6's Exporter

2001-12-22 Thread Michael G Schwern
. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Your words scratch the back of my eyes! http://sluggy.com/d/010204.html

Re: Stupid Newbie Question

2001-11-15 Thread Michael G Schwern
privacy. (yes, I know you can emulate class variables via package globals like $Class::blah, but I'm trying to look at it in a more uniform point of view so that you can fully treat Classes themselves as being objects) Class::Data::Inheritable anyone? :) -- Michael G. Schwern [EMAIL

Re: Stupid Newbie Question

2001-11-08 Thread Michael G Schwern
to tcl or python, cuz I can never find clear information about whether such an analog exists in those languages) is going away: AUTOLOAD. Going away? No way, it's SPREADING! We might wind up with AUTOGLOB, too. http://dev.perl.org/rfc/324.pod -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Stupid Newbie Question

2001-11-08 Thread Michael G Schwern
On Thu, Nov 08, 2001 at 04:21:57PM -0800, John Rudd wrote: So, does this mean my other heart's desire of operator overloading might be coming forth? Yeah, that was mentioned in Apoc and Exewhatever 3. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality

Re: Perl 6 - Cheerleaders?

2001-10-28 Thread schwern
and god I hope so. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Indenting

2001-10-16 Thread Michael G Schwern
distinguish between the normal and in-place versions of functions without proliferating the number of keywords. chomp! $string;# how chomp() currently works my $chomped_string = chomp $string;# like your chomped() function -- Michael G. Schwern [EMAIL PROTECTED

Re: Indenting

2001-10-16 Thread Michael G Schwern
. Considering how infrequently the return value of chop() and chomp() is really used, and how easy it is to emulate the current chop() and chomp() behavior with substr() and s///, I don't think it'll be a big loss. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality

Re: Indenting

2001-10-16 Thread Michael G Schwern
On Tue, Oct 16, 2001 at 08:53:07PM -0500, David M. Lloyd wrote: What about 'chomp?' for query but 'chomp' (no decoration) for operation? Is chomp? just a bad example, or is there some utility in asking if a string has already been chomped? -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Indenting

2001-10-16 Thread Michael G Schwern
on and act on this thing. # What would this look like if it were sorted? @sorted_list = sort @list; # Sort this list @list.sort -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Me

Re: Indenting

2001-10-15 Thread Michael G Schwern
is indented. Like having s/^\s{4}//gm. So you get the equivalent of: print Sometimes\n. form has to follow function\n. all over the page.\n; -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance

Re: Just a thought...

2001-10-09 Thread Michael G Schwern
@array; # Sort in place. sort! @array; -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One The eye opening delightful morning taste of expired cheese bits in sour milk!

Re: Hyper concat ^_ ?

2001-10-05 Thread Michael G Schwern
On Fri, Oct 05, 2001 at 09:50:53AM +0100, Richard Nuttall wrote: my @images = qw( pic1 pic2 pic3) ^_ ('.jpg'); my @images = map { $_ _ '.jpg' } qw(pic1 pic2 pic3); Hmmm, that's visually unappealing. Just thinking out loud. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com

Re: General Feelings on Apoc 3

2001-10-04 Thread Michael G Schwern
Apocalypse). Okay. That's a cop-out. He's basically saying that you can write Candthen and Corthen yourself as: snip I understand that much. What I don't quite get is the utility. There's some hand-waving in the RFC about making parsers easier. -- Michael G. Schwern [EMAIL PROTECTED

Re: General Feelings on Apoc 3

2001-10-04 Thread Michael G Schwern
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One purl Hey, Schwern! THERE IS A HUGE GAZORGANSPLATTEDFARTMONGERING- LIGHTENINGBEASTASAURSOPOD BEHIND YOU! RUN, BEFORE IT GAFLUMMOXES YOUR INNARDLYBITS!

Re: Custom iterators

2001-10-02 Thread Michael G Schwern
On Wed, Oct 03, 2001 at 02:26:47AM +0200, Bart Lateur wrote: foreach_line { print } 'some/file'; You really like underscores, do you? If all you got out of that thread was Schwern likes underscores then I explained iterators really, really, really badly. -- Michael G. Schwern

Re: Math functions? (Particularly transcendental ones)

2001-09-09 Thread Michael G Schwern
compatibility--and I don't think because it's mathematically redundant is a valid reason to bust compatibility for a tiny little function like log(). -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Math functions? (Particularly transcendental ones)

2001-09-08 Thread Michael G Schwern
On Sat, Sep 08, 2001 at 12:00:24PM -0400, Dan Sugalski wrote: pow : Raise x to the y power You forgot biff, zap and womp! -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Labels

2001-09-05 Thread Michael G Schwern
; GORK: if ( 1 ) { print Tin ; goto GORK if $b ^= 1; print \n; next GORK; } } -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I

Re: Source/Program metadata from within a program

2001-09-03 Thread Michael G Schwern
file you touch leaves one open to be seekable... Simple, just tie it so it only opens upon being used. OR, and I have no idea why I never thought of this before, instead of magic filehandles, just peek in %INC and open that file. -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Multiple-dispatch on functions

2001-09-01 Thread Michael G Schwern
On Sat, Sep 01, 2001 at 01:10:58PM -0400, Dan Sugalski wrote: At 10:03 PM 8/30/2001 -0400, Michael G Schwern wrote: Thinking about what Zhang was saying about multiple-dispatch not being inherently OO. I think he's sort of right. Multiple-dispatch need not be confined to method lookups

Re: Multiple-dispatch on functions

2001-09-01 Thread Michael G Schwern
symbol table. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One That which stirs me, stirs everything. -- Squonk Opera, Spoon

Re: Source/Program metadata from within a program

2001-08-31 Thread Michael G Schwern
, not any of the modules it loads. use Some::Module; use Fcntl qw(:seek); seek Some::Module::DATA, 0, SEEK_SET; @their_code = Some::Module::DATA; which only works if Some::Module has an __END__ block... but that shouldn't be hard to fix. -- Michael G. Schwern [EMAIL PROTECTED

Re: Source/Program metadata from within a program

2001-08-31 Thread Michael G Schwern
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One purl Hey, Schwern! THERE IS A HUGE GAZORGANSPLATTEDFARTMONGERING- LIGHTENINGBEASTASAURSOPOD BEHIND YOU! RUN, BEFORE IT GAFLUMMOXES YOUR INNARDLYBITS!

Re: CLOS multiple dispatch

2001-08-30 Thread Michael G Schwern
the existing Class::Multimethods module against normal method calls. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I'm spanking my yacht.

Multiple-dispatch on functions

2001-08-30 Thread Michael G Schwern
(Bar $bar) : multi { ... } sub foo (Baz $baz) : multi { ... } ...etc... Obviously, there would be no inheritance. Otherwise, it's just like multiple-dispatch where there's no superclass. Handy, if it's not too hard to implement. -- Michael G. Schwern [EMAIL

Re: Source/Program metadata from within a program

2001-08-30 Thread Michael G Schwern
for this? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I know you get this a lot, but what's an unholy fairy like you doing in a mosque like this?

Re: Source/Program metadata from within a program

2001-08-30 Thread Michael G Schwern
around saying Everything will be perfect when Perl 6 comes! -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Let's face it, said bearded Rusty Simmons, opening a can after the race. This is a good

Re: Expunge implicit @_ passing

2001-08-28 Thread Michael G Schwern
direction you get mind-bogglingly silly things like finalize which I just learned of today. I'm going to be giving a talk about just this sort of thing at JAOO to a room full of Java people. Should be interesting. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6

Re: Expunge implicit @_ passing

2001-08-28 Thread Michael G Schwern
On Tue, Aug 28, 2001 at 10:47:35AM -0700, Damien Neil wrote: On Tue, Aug 28, 2001 at 09:13:25AM -0400, Michael G Schwern wrote: As the pendulum swings in the other direction you get mind-bogglingly silly things like finalize which I just learned of today. What's so silly about finalize

Re: Expunge implicit @_ passing

2001-08-27 Thread Michael G Schwern
On Mon, Aug 27, 2001 at 10:58:00AM -0400, John Porter wrote: You can, with C goto $foo; . Problem is, it's *slower* (in p5 anyway) than the plain sub call. By only 10%. Let's keep things in proportion here. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6

Re: Expunge implicit @_ passing

2001-08-27 Thread Michael G Schwern
On Mon, Aug 27, 2001 at 06:50:35PM -0400, Ken Fox wrote: Michael G Schwern wrote: Any time you want to implicitly pass @_, you can just as easily *explicitly* pass it or use goto. I never thought of using goto actually. goto $method; actually looks clearer than the code I'm using

Re: Expunge implicit @_ passing

2001-08-27 Thread Michael G Schwern
On Mon, Aug 27, 2001 at 06:02:50PM -0500, Garrett Goebel wrote: From: Ken Fox [mailto:[EMAIL PROTECTED]] Michael G Schwern wrote: Any time you want to implicitly pass @_, you can just as easily *explicitly* pass it or use goto. goto does screw up caller... so I wouldn't say *anytime

Re: Changes in addressing of package variables?

2001-08-25 Thread Michael G Schwern
, 'Foo::bar'. So '$Foo::bar' would remain. Besides, Foo::$bar looks funny. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One conway: unit of mind expansion. One Conway == ~20 lines of Perl code

Expunge implicit @_ passing

2001-08-12 Thread Michael G Schwern
without copying before references were introduced, but that's not a problem anymore. foo(@_) or goto foo works just fine. I can't think of any reason why this feature is useful anymore, and it can be a really confusing behavior, so what say we kill it in Perl 6? -- Michael G. Schwern [EMAIL

Re: if then else otherwise ...

2001-07-30 Thread Michael G Schwern
if Cotherwise exists. PS -1 is true, just to make sure that's clear. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Hold on while I slip into something a little more naked.

Re: as long as we are discussing 'nice to have's...

2001-07-21 Thread schwern
in the core? ;) And is this new debugger API like the current debugger API, DB.pm? (Actually, I hope it isn't. Just making sure you're aware of what's already there.) -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee

Re: Feeding potatoes to dead horses

2001-07-13 Thread Michael G Schwern
On Thu, Jul 12, 2001 at 06:56:25PM -0700, Dave Storrs wrote: On Tue, 10 Jul 2001, Michael G Schwern wrote: You can always just do this: my Value $foo; And $foo will act like a normal scalar taking anything (your PMAW). If that's the goal, I'd vote that it be spelled

Re: precision belongs in bigfloats, nowhere else.

2001-07-13 Thread Michael G Schwern
which way the rounding goes) to reflect the inaccuracies involved. 63 cm +/- 0.5 cm. I have no idea if this is what Dan was thinking. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One If you got

Re: Feeding potatoes to dead horses

2001-07-10 Thread Michael G Schwern
just speculate, I'm going to go play with this idea for a while. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I was *meant* to mount your donuts.

Re: You can't make a hot fudge sundae with mashed potatoes instead of ice cream, either.

2001-07-09 Thread Michael G Schwern
in the parameter list (a la C++ function templates) - Provide a type hierarchy for all types (a la Haskell) I think a type hierarchy makes much more sense than unleashing the hell of templates on Perl. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance

Implied types, first try. Or Its amazing what you can do with potatoes

2001-07-09 Thread schwern
Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Implied types, first try. Or Its amazing what you can do with potatoes

2001-07-09 Thread Michael G Schwern
a type. We could have Perl go through heroics to try and find $foo's first assignment and imply a type from that, but I think that will rapidly get Messy and Surprising. my $foo;# PMAW PMAW? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com

Re: Implied types, first try. Or Its amazing what you can do with potatoes

2001-07-09 Thread Michael G Schwern
sometimes reap interesting ideas. :) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One GuRuThuG make a channel called #Perl, and infest it with joking and fun it doesnt make alot

Re: You can't make a hot fudge sundae with mashed potatoes instead of ice cream, either.

2001-07-09 Thread Michael G Schwern
functions is you have to rewrite the function N times (where N == the number of different types you want to handle). Its certainly a possiblity, it just seems rather inelegant. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL

You can't make a hot fudge sundae with mashed potatoes instead of ice cream, either.

2001-07-08 Thread schwern
Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Anyone actually experienced with object inheritance?

2001-07-06 Thread Michael G Schwern
it will be very optional in Perl 6) what problem is this solving? And how would this solve the Mail problem put forth by Ziggy? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I'm not actually Kevin

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-06 Thread Michael G Schwern
On Fri, Jul 06, 2001 at 12:41:42PM -0500, David L. Nicol wrote: But would the game be worth the candle? IMHO not really. Of all the potential quirks Perl's OO has, this is one of the least quirky and least violated. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: Anyone actually experienced with object inheritance?

2001-07-03 Thread Michael G Schwern
On Tue, Jul 03, 2001 at 12:10:19AM +0200, Bart Schuller wrote: The Apple Newton was programmed in NewtonScript, a prototype-based language. http://www.cc.gatech.edu/~schoedl/projects/NewtonScript/ seems like a nice overview. Ahh, its derived from Self. -- Michael G. Schwern [EMAIL

Good example of object inheritance's usefulness

2001-07-03 Thread Michael G Schwern
Ziggy came up with a good example of when object inheritance makes life easier. Basically, there are times when you'd want to override individual methods of individual objects. Example below. - Forwarded message from Michael G Schwern [EMAIL PROTECTED] - From: Michael G Schwern

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread schwern
On Tue, Jul 03, 2001 at 10:26:39AM +0100, Piers Cawley wrote: Hmm... let me write it first would you? Shouldn't be *too* hard. Suggestions for a real name for it? Class::Anonymous? Class::Anon? PS base has to take an array ref. Don't forget MI! -- Michael G Schwern [EMAIL PROTECTED

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread schwern
to solve it and fails and how object inheritance makes it really easy? -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Michael G Schwern
what I can do. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One my anus yearns now warm paste fills me happily saturday morning -- imploded

Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 04:18:31PM -0400, Michael G Schwern wrote: On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: Its not quite the same thing, but Java does have the concept of anonymous classes (it names them 'inner' classes): Is Perl6 going to have a similar concept? Okay

Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 05:04:23PM -0400, John Porter wrote: Michael G Schwern wrote: Are they really necessary? You can get the same effect so many other ways in Perl already, That is a very unhelpful attitude. We've already got everything and the kitchen sink proposed for Perl 6

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 05:09:58PM -0400, John Porter wrote: Perhaps this could be done by allowing to attach a name to q lexical scope; perhaps this could be conflated with normal labels. my package Foo { sub bar { ... } } perhaps? -- Michael G. Schwern

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread schwern
. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

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

2001-07-01 Thread schwern
::NonDisk and Foo::Disk classes, you might have parental $foo_disk and $foo_nondisk objects from which you derive sub-objects which then inherit their overridden methods. All these techniques start to blur together. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6

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

2001-07-01 Thread schwern
if something should or should not be in the core. Curried functions, AFAIK, only have the first trait. Then again, I really don't understand curried functions. If it turns out they have both traits, maybe we should relegate them to a core module instead. -- Michael G Schwern [EMAIL PROTECTED

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

2001-07-01 Thread schwern
the heuristics I'm using. I'm just trying to ease the amount of core work we'll have to do else Perl 6 will never get done. This particular feature we can do later if we need it. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED

Anyone actually experienced with object inheritance?

2001-07-01 Thread schwern
Rather than stumbling around in the dark here, is anyone actually experienced with object inheritance? Any Self programmers out there? Someone that's actually used this technique often and understands what works and what does? Any books/articles to recommend? -- Michael G Schwern [EMAIL

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

2001-06-30 Thread schwern
::OBJECT?! It might not work, Schwern. And even if it 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. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality

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

2001-06-29 Thread schwern
On Fri, Jun 29, 2001 at 08:59:59AM -0400, John Porter wrote: Michael G Schwern wrote: Second, and perhaps more importantly, we can do this perfectly well with a module. No hacks, no tricks, no filters. Class::Object uses the mini-class technique (ie. auto-generated classes Sorry

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

2001-06-29 Thread schwern
On Fri, Jun 29, 2001 at 09:50:55AM -0400, Dan Sugalski wrote: At 10:32 PM 6/28/2001 -0400, Michael G Schwern wrote: The rule of thumb has always been if you can do it in a module, don't put it in the core. Well, we can do it in a module. Work on the module, don't complicate the core

Re: Perl 6 proof-of-concept page

2001-06-29 Thread schwern
Class::Object -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

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

2001-06-29 Thread schwern
://www.pobox.com/~schwern/src/Class-Object-0.01.tar.gz There's really not much going on. No, that's a lousy rule of thumb. The tradeoffs must be considered. Otherwise we'd have Forth. (Or Lisp, ca. 1960.) What's the trade-off here? It works, its efficient, the hacks are well

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

2001-06-29 Thread Michael G Schwern
LOOK AT CLASS::OBJECT?! They're NO SLOWER than normal objects, it uses all the normal OO channels, it was very simple and small to implement and it WORKS! Now, right this second, with perl 5. I'll post the URL yet again... http://www.pobox.com/~schwern/src/Class-Object-0.01.tar.gz -- Michael G

Class::Object (was Re: Multiple classifications of an object)

2001-06-28 Thread Michael G Schwern
-isa('Class::Object'); # $obj-new clones itself, so $same_obj-foo comes out as $obj-foo my $same_obj = $obj-new; print $same_obj-foo; That's basically what you want, right? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL

Re: Class::Object (was Re: Multiple classifications of an object)

2001-06-28 Thread Michael G Schwern
Oh yeah. Look at Class::Classless. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Maybe they hooked you up with one of those ass-making magazines. -- brian d. foy as misheard

Per-object inheritance in core a red herring?

2001-06-28 Thread Michael G Schwern
we don't have to wait two years for Perl 6 to be able to use it! PPS A Class::Object proof-of-concept is en route to CPAN. http://www.pobox.com/~schwern/src/Class-Object-0.01.tar.gz if its not there yet. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality

Re: Multiple classifications of an object

2001-06-27 Thread Michael G Schwern
a superimposed scalar. ;) Not something you want to have to do by choice. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Our business in life is not to succeed but to continue to fail in high spirits

Re: Multiple classifications of an object

2001-06-27 Thread Michael G Schwern
(Employee $sex); } but delegation is probably the way to go. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One purl Hey, Schwern! THERE IS A HUGE GAZORGANSPLATTEDFARTMONGERING

Re: Multiple classifications of an object

2001-06-27 Thread Michael G Schwern
(@args). Ahh, the magic of closures. Wasn't Damian working on something like this? I looked at his delegation stuff in perl5+i, but it didn't seem to have anything to do with this sort of delegation. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: Embrace polymorphic builtins, for they are cool.

2001-06-20 Thread Michael G Schwern
of them, probably because they mesh so well we don't even think about it. You could consider functions which have default arguments as polymorphic, then there's lots and lots of polymorphism in Perl. But I digress. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread schwern
be safe to assume that an array of type 'int' (or some other fixed-width type) will be optimized to a vector. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread schwern
as easy as you think. http://lists.sourceforge.net/lists/listinfo/poop-group -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread schwern
. Alzabo, Class::DBI, Tangram, etc... -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Multi-dimensional arrays and relational db data

2001-06-10 Thread schwern
for extremely simple joins. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Properties and stricture and capabilities

2001-06-08 Thread schwern
by holding the capability. Getting into details about this doesn't make much sense as we don't yet know what the new symbol table interface will look like. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job

Re: Properties and stricture

2001-06-07 Thread Michael G Schwern
. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One My feet hurt... with destiny! http://sluggy.com/d/010204.html

Re: Properties and stricture

2001-06-07 Thread Michael G Schwern
On Wed, Jun 06, 2001 at 10:28:41AM -0400, John Porter wrote: Michael G Schwern wrote: It will have to go for strict classes. @ISA will have to be locked. strict classes? strongly typed class? Can a man make up gibberish in peace? ;) Basically, any class which wants to be type-checked

Re: Properties and stricture

2001-06-07 Thread Michael G Schwern
On Wed, Jun 06, 2001 at 07:06:49PM -0700, Dave Storrs wrote: But if we did, how could we hope to get a good new Star Trek series? : You're still hoping for a new, good Star Trek series??? You must be a Cubs fan. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com

Re: $foo.Foun (was Re: Properties and stricture)

2001-06-07 Thread Michael G Schwern
On Wed, Jun 06, 2001 at 01:37:23AM -0500, Me wrote: BD languages What's BD? Bondage and Discipline, scum! You're not a good enough programmer to be trusted not to make mistakes! Now drop and give me fifty! -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: 1 until defined(getvalue()); return $^d;

2001-06-07 Thread Michael G Schwern
; but TMTOWTDI. I am a bit worried about having to do so much pointer copying to support this feature. PS 'it' could take many forms -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Monkey tennis

Re: Properties and stricture

2001-06-05 Thread schwern
are declared strictly. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Properties and stricture

2001-06-05 Thread Michael G Schwern
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One sort God kill 9, @ARGV;

Re: Properties and stricture

2001-06-05 Thread Michael G Schwern
-checking. Doesn't do squat for basic logic errors, for example. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Death follows me like a wee followey thing. -- Quakeman

Re: Properties and stricture

2001-06-05 Thread Michael G Schwern
-of-concept thingy to scan for constructs which make code unpredictable here: http://www.pobox.com/~schwern/src/B-Scan-0.01.tar.gz Couldn't we still have a 'be-super-strict' flag that would throw warnings upon encountering a construct that would interfere with compile-time checking? Make

<    1   2   3   4   >