Re: RFC 73 (v1) All Perl core functions should return ob

2000-08-09 Thread Damian Conway
sts so you can say that you want the first thing > from date()'s list value I hate casts. I would trust mjd to > tell me that it could be done right, but until he says that, I'm > against anything that requires casting. I'll be against casts *even* if MJD blesses them. I REALLY hate casts. Damian

Re: $a in @b

2000-09-07 Thread Damian Conway
e" ugly: my $seen; $has_odd_elem = grep { $seen && last; $_%2 && ++$seen } @numbers; :-( Damian

RE: $a in @b

2000-09-07 Thread Damian Conway
Garrett wrote: > It almost feels like grep could have been written like this (in > another life): @a = grep (@b) { $_ > 2 or last } http://www.csse.monash.edu.au/~damian/TPC/2000/Romana/perligata.html ;-) > While I'm at it, I'm curious as to why: >

Re: $a in @b

2000-09-07 Thread Damian Conway
evaluate to *anything*. So the C is terminated by the C without the block having ever evaluated true. So no element of LIST is ever "passed through". So the C evaluates to zero. Damian

Re: $a in @b

2000-09-07 Thread Damian Conway
reaches 100 (and exclude that result)... @squares = map { my $sq = $_ ** 2; $sq >= 100 ? die : $sq } @numbers; $product = reduce { my $pr = $_[0] * $_[1]; $pr >= 100 ? die : $pr } @numbers I'll be happy to change the C RFC if people like this alternative. Damian

Re: $a in @b

2000-09-07 Thread Damian Conway
h the exceptions it throws. This proposal just suggests that C, C, etc. should catch exceptions emanating from their control BLOCKs and act on them. :-) Damian

Re: $a in @b

2000-09-07 Thread Damian Conway
> I don't think C should be able to eat unintentional exceptions. > Perhaps it could short-circuit if the exception is 1 or false, as > opposed to true or false? No objection here. Damian

Re: RFC 195 (v1) Retire chop().

2000-09-07 Thread Damian Conway
> > 'Pends on whether you modulate them. > > KCHP 1570 on your AM dial! Aw, not *another* one of those easy-listening Californian motor cop stations! Damian

Re: $a in @b

2000-09-07 Thread Damian Conway
ith this. I'm not sure if that's good or bad. Bad, I think. Damian

Re: RFC 195 (v1) Retire chop().

2000-09-07 Thread Damian Conway
> Shoot chop. and chomp. Unless you add unchop and unchomp. C *has* an inverse. Surely you know about the unary postfix C<.$/> operator? Of course, you have to be careful. There's a known bug that the C<.$/> doesn't properly "unchomp" if you've ever used the C<$/&=``> operator. ;-) Damian

Re: RFC 194 (v1) Standardise Function Pre- and Post-Handling

2000-09-06 Thread Damian Conway
I should have an RFC out on this by next week. Damian

Re: RFC 194 (v1) Standardise Function Pre- and Post-Handling

2000-09-06 Thread Damian Conway
> Feel free to hijack and/or infiltrate my RFC. You Will Be Assimilated. Damian

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-10 Thread Damian Conway
. The trailing C<&> parameter specification tells the parser that there the last argument will be a raw block and that it need not be a followed by a semicolon. It's no harder than parsing an C, C, or C, except that parser has to update itself when it sees the parameter specification. Damian

RE: RFC 199 (v2) Another question...

2000-09-10 Thread Damian Conway
> Would it be possible to expand the function prototypes so that a function > could be defined to take a loop block instead of a code block? I'm not sure what you mean here. Damian

Re: $a in @b

2000-09-11 Thread Damian Conway
xt statement after the C, whereas the block needs to start from the beginning on each iteration. Damian

RE: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-11 Thread Damian Conway
> I'm under the impression that "&" used in a function prototype signifies > that the function takes a code block. That's right. As I said in another post, I'm functioning rather poorly just at the moment. :-( Damian

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-11 Thread Damian Conway
$_[0] } sub takes_any { print "takes_any: ", Dumper $_[0] } takes_block { a => print("then\n"), b => 2 }; takes_any { a => print("then\n"), b => 2 }; Damian

Re: $a in @b

2000-09-11 Thread Damian Conway
ive something else a >a chance to do its things. And while you are doing >that please take this EXPR from me. The problem is, C also means "..and when this code is next executed start at the line after this C". Which is *not* the desired semantics. Damian

Re: C in RFC 31

2000-09-12 Thread Damian Conway
d *that* in to RFC 31. Thanks Damian

Re: more yield tricks ((was Re: C in RFC 31

2000-09-13 Thread Damian Conway
the current block. Damian

Re: more yield tricks ((was Re: C in RFC 31

2000-09-13 Thread Damian Conway
foreach @bigarray { $unmerge->(); } It's only drawback being that it's appalling. ;-) Damian

Re: RFC 223 (v1) Objects: C pragma

2000-09-14 Thread Damian Conway
that inevitably ends up in $self. Damian

Re: RFC 226 (v1) Selective interpolation in single quotish context.

2000-09-14 Thread Damian Conway
Why not just give \I..\E a special "turn-on-interpolation" meaning in q{} docs? $code = ' $x = $y; @a = (1..10); $name = \I$funcname\E; # etc. '; Damian

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Damian Conway
nd if it fails to find a \E, then it turns itself off after the first interpolation >:-) Damian

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Damian Conway
qq{..} semantics on the text in between. So you'd still write: "..\I${\func($arg1)}\E.." or "..\I@{[func($arg1)]}\E.." Damian

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Damian Conway
escape should be another char than \E? Make \E significant only where it's explicit. Also make \E signifcant only when \I is in effect. So to get the string '$interpolated\E\Einterpolated\E$$' we write: $x = 'interpolated\E'; $y = q{$\I$x\E\E\I$x\E$$}; Damian

Re: RFC 230 (v1) Replace C built-in with pragmatically-induced C function

2000-09-15 Thread Damian Conway
ints throughout your script. Easy. Put them in a subroutine: sub format1 { format $template1, @data }; sub format2 { print STDERR format $template1, @data }; # etc. Damian

Re: RFC 71 (v2) Legacy Perl $pkg'var should die

2000-09-17 Thread Damian Conway
it SPURNS your PATHETIC HUMAN ATTEMPTS to THWART it!! Take the ' separator; the MIGHTY Klingon module SHALL TRIUMPH regardless!!! ;-) Damian

Re: RFC 195 (v2) Retire chop().

2000-09-17 Thread Damian Conway
> They need to learn to speak English. > > $line_sans_terminator = chomped ; > $last_list_element= popee some_func(); > > Perhaps. Or Latin: verso_absque_termino FHum mordementum. elemento_ultimo somefunctementa decumulamentum. ;-) Damian

Re: RFC 230 (v1) Replace C built-in with pragmatically-induced C function

2000-09-17 Thread Damian Conway
idth and then allow the header/footer > to simply indicate left|center|right text? I have a good idea for this. I'll add it to the next version of the RFC. Thanks, Damian

Re: RFC 230 (v1) Replace C built-in with pragmatically-inducedC function

2000-09-18 Thread Damian Conway
> >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

Re: RFC 230 (v1) Replace C built-in with pragmatically-induced C function

2000-09-18 Thread Damian Conway
e difference between a module and a > pragma, and more particular, why it is important that this would become > a pragma? Should be a standard module not a pragma. I'll excise that remnant of an earlier version in the next draft. Thanks. Damian

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-18 Thread Damian Conway
lue) : repeat{1,} ) {...} > Could the prototype people please report whether Tim Bunce's issues with > prototypes have been intentionally/adequately addressed? I'm not a prototype person (in fact RFC 128 makes it a hanging offence to use that confusing word in connection with parameter lists! ;-) Could someone please recapitulate Tim's issues? Damian

Re: RFC 230 (v2) Replace C built-in with pragmatically-induced C function

2000-09-18 Thread Damian Conway
're hard to read and remember. > Methinks break_tex is sufficient. But that's just my opinion. I ain't gonna argue with Donald Knuth! ;-) Damian

Re: RFC 255 (v2) Fix iteration of nested hashes

2000-09-19 Thread Damian Conway
ing to do? The short answer is that there is no "manual" reset of iterators. Damian

Re: RFC 21 (v2) Subroutines: Replace C with a generic C function

2000-09-19 Thread Damian Conway
are detecting a 'HASH' context, since a 'LIST' is > really just a more general case of both of them. > >@data = Matrix->gendata; # want 'ARRAY'; >($a, $b, $c) = Matrix->gendata # fail > > It seems like this is something that want should be able to handle. I *really* doubt that this is ever a useful distinction. Can anyone suggest a Real World case where it might be useful? Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
> > Collection: > > > > @triples = @{ reduce sub($;$$$){ [@{shift},[@_] }, [], @singles }; > > You've a typo there Noted. Thanks. Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
[0] } > > > > [[],[]], > > > > @numbers; > > > > > I don't understand this one. > > > > $sorted = reduce { push @{ ^0 [ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers; > > I guess I'm confused with the syntax. Shouldn't there be an -> in > there? > >$sorted = reduce { push @{ ^0->[^1%2] }, ^1; ^0 }, [[],[]], @numbers; Yep. Note that the original @_-based *didn't* need one, because ->'s are optional between ] and [. Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
> > list of partial values -- to that point. If the C occurs during > > the first reduction, an exception is thrown. > > Again, no other builting currently throws an exception. If throwing > an exception is to become the norm then that should be a separate > RFC suggesting that builtins throw exceptions, but reduce should do > what others do. Even at the risk of Destroying the Entire Universe??? What do others think? Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
> These raise an exception whenever they're feeling curmudgeonly: > > glob require substr sysread syswrite write > > I presume this would fall in the lattermost category. Very nicely expressed :-) Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
rray in there? :-) And even if you wrote: $sum = reduce(^_+^_, @numbers) || die "Chaos!!"; you're still going to over-react to a zero-sum sequence. You need: defined($sum = reduce ^_+^_, @numbers) || die "Chaos!!"; Damian

Re: Pre-Freeze notice for RFC: 199 Short-circuiting built-in function s and user-defined subroutines

2000-09-19 Thread Damian Conway
Just as a data point, I have now removed this short-circuiting bits from the C RFC. You may take that as a deferral to -- and endorsement of -- the more general mechanism mooted in RFC 199. Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
the "empty list" exception never raises (ahem) its ugly head. I think the consensus is still that reducing an empty list shall throw an exception. Damian

Re: RFC 255 (v2) Fix iteration of nested hashes

2000-09-19 Thread Damian Conway
from scratch, so the alternatives are: 1. I retract the RFC, and we live with the problem 2. I freeze the RFC, having added an Unresolved Problems section 3. Someone else takes it over and fixes it properly Preferences? Suggestions? Volunteers? Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
ways cleaner *and* shorter. :-) Damian

Re: RFC 76 (v2) Builtin: reduce

2000-09-19 Thread Damian Conway
make 0 the default value by default? Yes. In the RFC you'll find several examples of reductions where the default isn't 0. Simplest example: $product = reduce ^_*^_, 1, @data; Damian

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

2000-09-19 Thread Damian Conway
Should I point out that RFC 225 (Superpositions) actually covers most of this? C is equivalent in semantics to C or C. Except, of course, the superpositional versions work...In Constant Time! ;-) Damian

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

2000-09-19 Thread Damian Conway
-- to which the RFC also refers -- does provide a comprehensive exposition of superpositions. I take the liberty of reprinting it for you below. Damian ---cut---cut---cut---cut---cut-- NAME Quantum::Superpositions - QM-like superposi

Re: RFC 230 (v2) Replace C built-in with pragmatically-induced C function

2000-09-20 Thread Damian Conway
t) internationalization issues you raise: break_16bit, break_kanji, etc. Since this would be part of the standard module (and therefore presumably implemented in C and integrated with the C function itself), I don't believe speed would be an issue. I will mention this prospect in the final version of the RFC. Damian

Re: RFC 259 (v2) Builtins : Make use of hashref context for garrulous builtins

2000-09-24 Thread Damian Conway
don't think so. I suggest you need a separate RFC to propose semantic changes like this and: > Y'know, this C-based interface has always sucked. ... > I know this isn't directly related to your RFC, but I needed to bring it > up. Seems like adding the upack('C4') thing to the gethost* functions > wouldn't be that hard and would make these common tasks a lot easier. Damian

Re: RFC 271 (v1) Subroutines : Pre- and post- handlers for subroutines

2000-09-24 Thread Damian Conway
e your handlers seems ok. > for one thing, this is not hard to describe in basic terms (until you > get to the inheritance stuff) and it is useful in many ways. maybe you > should rename this as triggers as handlers have a meaning is signals and > in event callbacks. I think the term "triggers" is too obscure. "Handler" is a very general term that people understand in many contexts, apart from signals and callbacks. Thanks again, Damian

Re: RFC 285 (v1) Lazy Input

2000-09-24 Thread Damian Conway
ame > machinery as lazy subs. RFC 21 provides just the mechanism you (ahem) want in order to implement a "finite list" context behaviour for the diamond operator. Damian

Re: RFC 255 (v2) Fix iteration of nested hashes

2000-09-24 Thread Damian Conway
steal whatever they feel is worthwhile from this now-defunct proposal. Damian

Re: Perl6Storm: Intent to RFC #0101

2000-09-25 Thread Damian Conway
the original predicate is true for that file. Then one could write: if ( $file == all(writable, directory) ) { ... as well as: @readable = eigenstates(any(@file) == readable)); Bwah-ha-ha-ha! Damian

Re: RFC 290 (v1) Remove -X

2000-09-25 Thread Damian Conway
gt; -^rwx; # $_ is readable, writable and executable > > > > > > ($size, $mod, $acc, $ichange) = -^sMAC; > > The use of a caret was to prevent decimation of the user's namespace, But the syntax already has a meaning under the very popular RFC 23: Higher Order Functions. :-( Damian

RE: RFC 264 (v1) Provide a standard module to simplify the creation of source filters

2000-09-25 Thread Damian Conway
ing is not adequate in the general (and common) case. > I'm not sure Filter is the best name for this. How about Filter::Transform > or Filter::Simple? Filter::Simple is much better. Thanks. :-) Damian

Re: RFC 259 (v2) Builtins : Make use of hashref context for garrulousbuiltins

2000-09-27 Thread Damian Conway
t the same. Even though I never looked at the modules. :-) I've added the complete module list to the REFERENCES section of the RFC. Damian

Re: RFC 259 (v2) Builtins : Make use of hashref context forgarrulousbuiltins

2000-09-27 Thread Damian Conway
> So getpwnam/uid should probably return gecos, not gcos. Yep. Already fixed in the next version. Damian

Re: About RFC 271: pre/post handlers

2001-01-24 Thread Damian Conway
my $result = $real_abc->(@_); >do_post_handler($result); >return $result; >} is just: pre abc { my $real_abc = (caller(0))[10]; do_pre_handler(@_); $_[-1] = $real_abc->(@_); do_post_handler($_[-1]); } Damian

Re: About RFC 271: pre/post handlers

2001-01-25 Thread Damian Conway
> That's now DWIM for me!!! Setting aside the error in the RFC, the point is that this isn't the way you use pre and post in an OO context. If you have a class with a next_temp that only handles Celsius, then you *derive* a new class with a new, polymorphic next_temp that handles the

RE: About RFC 271: pre/post handlers

2001-01-25 Thread Damian Conway
use of subs from the non-OO. > Wouldn't you want all the pre-handlers invoked all the way up? Even > if you don't care about the results of those pre's which are > conditions? Not for methods. Methods don't need inherited pre-*handlers*, since you can already "wrap" them simply by providing an overriding method (one that delegates via SUPER::) in the derived class. Damian

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Damian Conway
> >Or, should we just implement usleep() and (for lack of a better name) > > snooze() is a better name ;-) nap() is even better (shorter that sleep() :-) Damian

Re: Really auto autoloaded modules

2001-02-02 Thread Damian Conway
> Speaking of contract names, is Damien about? No, but when you summon the AntiChrist, I sometimes appear instead. ;-) Damian

Re: Really auto autoloaded modules

2001-02-02 Thread Damian Conway
push @unresolved, $sub; } Or else it checks all the candidates and resolves only if there is exactly one whose condition is satisfied, generating an "Ambiguous subroutine..." error if more than one condition is fulfilled. Damian

Re: Really auto autoloaded modules

2001-02-02 Thread Damian Conway
ose this also implies a C subroutine (C'd, of course :-) within modules -- so that one can replace: @EXPORT_OK = qw( only by request ); with: autouse only{requested}, by {requested}, request {requested}, ; H. Tidy, but too tedious perhaps? Damian

Re: Really auto autoloaded modules

2001-02-02 Thread Damian Conway
y if the package's C is still called, when it's in effect. All too often I want the convenience of Exporter, but I need to twiddle the import semantics too. Damian

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

2001-02-05 Thread Damian Conway
f" ... > scalar() > } > continue { > close F; > } RFC 271 handles this. Your example would be: sub readit { open F, "< $f" ... scalar() } post readit { close F; } Damian

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

2001-02-05 Thread Damian Conway
echanism on *any* block. For historical reasons, I suppose it should be C, though I would much prefer a more generic name, such as C. Damian

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

2001-02-05 Thread Damian Conway
l, in conjunction with the C: while (1) { ... # add to $text in complex ways } continue { $text .= "\n"; } # separate with newlines always { $trycount++ }# count attempts (including last) Damian

Re: Larry's Apocalypse 1

2001-04-10 Thread Damian Conway
> Of course all of this has been discussed. (See > http://archive.develooper.com/perl6-language-io%40perl.org/, > especially RFCs 100 and 14.) And is already available in a nearby parallel dimension: http://www.yetanother.org/damian/Perl5+i/open.html ;-) Damian

Re: Flexible parsing (was Tying & Overloading)

2001-04-28 Thread Damian Conway
Surely that should be: use Policy::O::Reilly; # really gonna miss that ' package separator ;-) or use Policy::Mongolian::Navy::Office::Procurement; Next you'll be putting the month and day before the year in dates! Damian

Re: a modest proposal Re: s/./~/g

2001-04-28 Thread Damian Conway
> : Hey, that would make "_ _ __" legal Perl code. Abigail, Abigail! > > Now we just need to make "... ___ ..." mean something exceptional. Just download the Bleach.pm module from the CPAN. It includes Morse.pm. Damian ---cut---cu

Re: Flexible parsing (was Tying & Overloading)

2001-04-29 Thread Damian Conway
> > You Americans and your non-ISO penchant for putting the specific before > > the general. Surely that should be: > > > > use Policy::O::Reilly; > > I knew someone would argue that, but I didn't think it would > be someone

Re: Please make "last" work in "grep"

2001-05-02 Thread Damian Conway
> > Because you might have a wantarray situation that expects no values? > > > > () = whateveryouwant(); > > I am sure that situation is handled by the 'want' RFC. Yep. The most recent version is at: http://www.yetanother.org/damian/

Re: Please make "last" work in "grep"

2001-05-02 Thread Damian Conway
> >Hopefully the "something similar", I hope in Perl 6 we will able to > >bury the "0 but true" workaround to the backyard on a moonless night :-) > > Especially since you don't need it. "0E0" and "0.", to name just t

Re: Apoc2 - concerns

2001-05-04 Thread Damian Conway
ike the current "while ()" magic we all know and occasionally > love. I'd expect $FOO.readln (or something less Pascalish) to do an > explicit readline to a variable other than $_ $STDIN.next is the current plan. Damian

Re: Apoc2 - Context and variables

2001-05-04 Thread Damian Conway
@d" in Perl5 >3. Or the mystery meat behind Door #3 This one's still less-than-certain. Definitely either 1 or 3 though. If option 3, it would be the equivalent of the Perl 5: %c = map {($_=>undef)} @d; Damian

Re: Apoc2 - concerns

2001-05-08 Thread Damian Conway
> Doubtless Damian could come up with a way to view them as hashes... Well, of course. An iterator is neither pure state nor pure behaviour. It's an inextricable commingling of the two. In other words: an object. So they are *most naturally* viewed as hashes: package

Re: p6 casting as shortcut for lengthier p5 syntax

2001-05-11 Thread Damian Conway
foo.{$k}) Code reference $foo->(@a) $foo(@a) (or $foo.(@a)) Array slice @foo[$n] Hash slice @foo{$k} Damian

Re: what I meant about hungarian notation

2001-05-14 Thread Damian Conway
> @bar{$foo}; # C Syntax error > %bar[$foo]; # D Syntax error Damian

Re: what I meant about hungarian notation

2001-05-14 Thread Damian Conway
ules and add a single line to your program: use Attribute::Handlers autotie => { Sorted => 'Tie::SortHash' }; Then you can write: my %hash : Sorted; or: my %hash : Sorted({}, sub { $hash{$b} cmp $hash{$a}}); etc. Damian PS: Casey, if you'd like to

Re: Apoc2 - concerns

2001-05-14 Thread Damian Conway
> Perhaps it's because the people who are capable of writing such a > module, are the ones who don't need it. But, not everyone is a conway. Immortality at last...I appear to have become a common noun. ;-) Damian

MML dispatch (was: Hackathon notes)

2005-07-09 Thread Damian Conway
tches to #1 (distance = 0) > (We could still subtract addtional values of epsilon for later files > to make Yuval happy--or at least less unhappy...) This would make Damian very unhappy as it discriminates against good development practices like refactoring code into modules. > We co

Re: MML dispatch

2005-07-11 Thread Damian Conway
s as more special: multi sub Foo((Int|Str) where Any) {...} multi sub foo(Int) {...} or treat junctions as less special: multi sub Foo(Int|Str) {...} multi sub foo(Int where Any) {...} In each case, these variations in "significance" are now explicitly and consistently marked. Damian

Re: Perl 6 Summary for 2005-07-05 through 2005-07-12

2005-07-12 Thread Damian Conway
^ C<.method> is perfectly legal on *any* topic anywhere that $?SELF doesn't exist. Damian

Re: MML dispatch

2005-07-13 Thread Damian Conway
formance was not appreciably worse. Damian

Re: MML dispatch

2005-07-13 Thread Damian Conway
least-inherited' most specific non-where type and with 'most-specialized' the strictest where clause? I mean: least cumulative derivation distance summed over the set of parameter types, with greatest *number* of parameter specializations as a tie-breaker (if required). Damian

Re: MML dispatch

2005-07-13 Thread Damian Conway
. Metric schemes have far fewer ambiguities and usually dispatch in an predictable way. Metric schemes can still provide pure-ordering analyses via static analysis tools or special warning modes, but pure ordering schemes can't avoid ambiguities or DWIM. Of course, none of this prevents: use MMD ; Damian

Re: MML dispatch

2005-07-13 Thread Damian Conway
y close to the same performance by jitting an MMD look-up table on-the-fly (possibly with some table-compression where large hierarchies or many parameters are involved). Damian

Re: MML dispatch

2005-07-14 Thread Damian Conway
Luke wrote: Thanks for your very detailed explanation of your views on the Pure MMD scheme, Damian. I finally understand why you're opposed to it. I could never really buy your previous argument: "Manhattan distance is better". That was never my *argument*, merely my statem

The Use and Abuse of Liskov (was: Type::Class::Haskell does Role)

2005-07-17 Thread Damian Conway
ce those redefined methods may be completely irrelevant to the particular multimethod being dispatched and therefore not a reliable distance measure in *its* particular dispatch space.) To summarize: * LSP/Meyer requires high level semantics and type relationships be preserved, *not* that specific dispatch behaviour be preserved. * So LSP specifically doesn't prohibit changes in a dispatch target when a hierarchy changes, unless that change in target terminates normal flow control. * LSP applies to singly dispatched method calls, not to multiple dispatch. Damian

Re: The Use and Abuse of Liskov

2005-07-19 Thread Damian Conway
of instance behaviours are--again by definition--*not* identical. Or just don't satisfy me. I suspect it this is the option that will occur. You seem to be looking for mathematical correctness and theoretical purity...a laudable goal. But I'm merely looking for practical utility and convenience. So far, the twain seemed destined never to meet. Damian

Re: Strange interaction between pairs and named binding

2005-07-22 Thread Damian Conway
autothreading. Not surprisingly, I strongly agree with this sentiment! ;-) Damian

Re: The Use and Abuse of Liskov

2005-07-29 Thread Damian Conway
nding the best possible design solutions that has made/is making/will make Perl 6 insanely great. Damian

Re: Demagicalizing pairs

2005-08-23 Thread Damian Conway
nd of consistency, and if we s/+/:/ in sigs, a sig containing :$foo could instead be written $:foo (presuming we take : away from privates as we've postulated), Yes please. Underscore is much better in that role. Damian

Re: Demagicalizing pairs

2005-08-24 Thread Damian Conway
Texan equivalents here would be a dire step backwards. They're already overloaded for word lists and hyperoperators. I think using them for an invocant marker as well would simply be too much. The colon really was (and still is) the right choice here. Damian

Re: ~ and + vs. generic eq

2005-08-24 Thread Damian Conway
ming). So far we're contemplating: =:= ~~ == eq eqv equals Do we really need even that many??? Damian

Re: Manuthreading

2005-08-28 Thread Damian Conway
baz") You're going to need to find another syntax. That one already means something else (namely, shell-like interpolating word list). Damian

Re: Manuthreading

2005-08-28 Thread Damian Conway
s. People will associate inward facing >><< with hyperization, regardless of what's being hyperized. Damian

Re: Proposal: split ternary ?? :: into binary ?? and //

2005-09-05 Thread Damian Conway
else" in a ternary operation. Splitting the ternary destroys that vital characteristic, which would be a very bad outcome. Damian

<    1   2   3   4   5   6   7   8   9   10   >