Re: command auto-completion in perl6 shell

2017-05-30 Thread Rob Hoelz
It's pretty modular already; only a little more work would be needed to have it loaded as an external module. On Tue, 30 May 2017 12:34:08 -0400 Parrot Raiser <1parr...@gmail.com> wrote: > The REPL's almost an independent project. > > Can it be made modular, to reduce the coupling between it an

Re: command auto-completion in perl6 shell

2017-05-30 Thread Rob Hoelz
, manipulating global variables in native code wasn't possible, but maybe that's changed in the last year or so! As I said above, the completions offered are pretty limited - if you would like to extend the completions capabilities of the REPL, you can change the Completions role in src/core/REPL

[perl #125463] [JVM] .IO.unlink succeeds in unlinking empty directories

2017-05-01 Thread Rob Hoelz via RT
On 2017-05-01 01:38:14, c...@zoffix.com wrote: > > On 23 Jun 2015, at 15:37, Rob Hoelz (via RT) > follo...@perl.org> wrote: > > Unlinking a non-existent file should fail() rather than return True. > > The end-goal of .unlinking stuff is for the file to stop existing. >

Re: exit code: 141 causes Perl 6 to exit.

2017-03-27 Thread Rob Hoelz
FWIW, 141 is SIGPIPE. (signal 13 + WIFSIGNALED flag (128)) So something's happening in your RUN script that's causing it to write to a closed pipe. I hope this helps! -Rob On Mon, 27 Mar 2017 11:51:03 +0300 Gabor Szabo wrote: > Putting > > CATCH { default { put

Re: Help mechanism in REPL?

2016-09-10 Thread Rob Hoelz
On Fri, 09 Sep 2016 16:30:28 -0700 Alex Elsayed wrote: > On Wednesday, 7 September 2016 17:57:32 PDT Parrot Raiser wrote: > > This isn't a request for a feature, merely a thought experiment. > > We're still in the phase where it's more important to ensure that > > existing features work properly

Announce: Rakudo Perl 6 compiler, Release #99 (2016.05)

2016-05-21 Thread Rob Hoelz
mboy64, Moritz Lenz, Altai-man, Rob Hoelz, Zoffix Znet, Salvador Ortiz, Tom Browder, Ahmad M. Zawawi, Xliff, Matt Oates, Nick Logan, Jonathan Stowe If you would like to contribute or find out more information, visit <http://perl6.org>, <http://rakudo.org/how-to-help>, ask on the

Experimental multi-line REPL branch up for testing

2016-02-07 Thread Rob Hoelz
treated as single entries in the command history. Thanks! -Rob

Type constraint for named parameters, and questions about 6.c backwards compat

2015-12-21 Thread Rob Hoelz
ld technically depend on introspection of the signature returning Any in this case, would we be hesitant to change the behavior? Thanks, Rob

Rakudo September Deprecations

2015-09-01 Thread Rob Hoelz
the deprecated code incrementally. I think removing about six a day should do the trick for the release on the 17th. What does everyone think of this idea? We can perform the work in a branch if we want to keep (nom&glr) backwards compatible until we throw the switch. -Rob

Re: Are there any web applications written in Perl 6?

2015-07-18 Thread Rob Hoelz
gt; regards > Gabor Hi Gabor, I believe that http://testers.p6c.org/ is written in Perl 6 (https://github.com/perl6/cpandatesters.perl6.org) Are you going to put your talk online? I'm sure a bunch of Perl 6ers (myself included) would be happy to see it! -Rob

Announce: Rakudo Perl 6 compiler, Development Release #89 ("Salt Lake")

2015-06-18 Thread Rob Hoelz
ollowing people contributed to this release: Elizabeth Mattijsen, Tobias Leich, Jonathan Worthington, Timo Paulssen, Rob Hoelz, Christian Bartolomäus, Will "Coke" Coleda, Bart Wiegmans, Larry Wall, Moritz Lenz, Justin DeVuyst, Steve Mynott, Carl Masak, Solomon Foster, cygx, smls, Alexa

[perl #125182] bufs need .push

2015-05-29 Thread Rob Hoelz via RT
On Fri May 29 06:23:54 2015, r...@hoelz.ro wrote: > On Fri May 29 05:54:10 2015, r...@hoelz.ro wrote: > > On Wed May 13 16:38:02 2015, rjbs wrote: > > > A buf is supposed to be mutable, but I can't push to it. TimToday++ > > > said this > > > was incorrect behavior and just NYI. > > > > > > ~$ pe

[perl #125182] bufs need .push

2015-05-29 Thread Rob Hoelz via RT
On Fri May 29 05:54:10 2015, r...@hoelz.ro wrote: > On Wed May 13 16:38:02 2015, rjbs wrote: > > A buf is supposed to be mutable, but I can't push to it. TimToday++ > > said this > > was incorrect behavior and just NYI. > > > > ~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)' > > Cannot call push

[perl #125182] bufs need .push

2015-05-29 Thread Rob Hoelz via RT
On Wed May 13 16:38:02 2015, rjbs wrote: > A buf is supposed to be mutable, but I can't push to it. TimToday++ > said this > was incorrect behavior and just NYI. > > ~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)' > Cannot call push(Buf: Int); none of these signatures match: > (Any:U \SELF:

Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?

2015-03-30 Thread Rob Hoelz
Yup, PERL6LIB. =) On Mon, 30 Mar 2015 17:03:05 -0500 Tom Browder wrote: > I would like an easy way to have a local search path for local Perl 6 > modules (those not installed via Panda). > > I'm used to using the environment variable PERL5LIB for Perl 5 > modules. Is there currently any equiva

Re: Perl 6 script beginning lines: 'v6;' required?

2015-03-13 Thread Rob Hoelz
6" is now deprecated: https://github.com/perl6/specs/commit/b7196bd -Rob

Re: [perl #121298] Using compiled modules on MoarVM fails when there's a data structure in the module

2014-03-02 Thread Rob Hoelz
On Sun, 2 Mar 2014 02:02:36 -0800 "Tobias Leich via RT" wrote: > Am Fr 21. Feb 2014, 17:20:53, r...@hoelz.ro schrieb: > > I've attached a sample tarball of code; use ufo, make, and perl6 > > test.p6 to run it. A more real-world example is the URI module. > > The weird thing is that accessing th

Re: [perl #119877] AutoReply: $/ values not populated in block when using subcapture on Rakudo-JVM

2013-09-23 Thread Rob Hoelz
I should also mention that while this form produces the bug: regex foo { { say($) } } This form does not: $s ~~ / { say($) } }/

Re: Packaging Perl 6 (or rather, Rakudo Star)

2013-03-05 Thread Rob Hoelz
On 3/5/13 11:44 AM, Patrick R. Michaud wrote: > On Tue, Mar 05, 2013 at 11:13:51AM +0100, Rob Hoelz wrote: >> I already have my own package for Arch Linux for Rakudo Star, and I keep >> the OS X homebrew package up-to-date as well. I'd like to create an RPM >> spec f

Packaging Perl 6 (or rather, Rakudo Star)

2013-03-05 Thread Rob Hoelz
all"), but the former is probably a little harder to do. -Rob

Pygments hilighter for Perl 6

2013-01-02 Thread Rob Hoelz
erl6', or if 'use v6' is found. This can be improved. * Speed improvement. I haven't put any time into optimization, and this can likely be improved. If you find any bugs, or better yet, if you have any improvements to submit, please let me know! -Rob signature.asc Description: PGP signature

Re: [perl #67890] [PATCH] Two patches for the Perl6 compiler

2010-07-28 Thread Rob Hoelz
I submitted these patches over a year ago...are they even relevant anymore? On Tue, 27 Jul 2010 18:51:12 -0700 "Will Coleda via RT" wrote: > On Sat Jul 25 17:20:40 2009, hoelzro wrote: > > See the patches' summaries for details. > > Sorry for the delay in responding, but these patches no longer

[perl #46473] Patch to correctly verify whether the malloc, format, and nonnull attributes are supported

2007-10-17 Thread Rob West
# New Ticket Created by "Rob West" # Please include the string: [perl #46473] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46473 > This patch should make it so that the NOTNULL macro will work as expected f

Relationship between pugs and parrot/language/perl6

2006-05-29 Thread Rob
I see that there's work being done on a perl6 implementation under languages in parrot. How is this effort related to the pugs project? Is the aim of this to provide an alternative implementation of perl6 to pugs? Is one of them the destined to be the canonical implementation, or is the

Re: ACID transactions for in-memory data structures

2006-05-16 Thread Rob Kinyon
On 5/15/06, Audrey Tang <[EMAIL PROTECTED]> wrote: Rob Kinyon wrote: > I'm pretty sure it wouldn't be very feasible to do this natively in > P5. But, would it be possible to do it natively in P6? As in, > supported within the interpreter vs. through some sort of overloa

ACID transactions for in-memory data structures

2006-05-15 Thread Rob Kinyon
do it natively in P6? As in, supported within the interpreter vs. through some sort of overloading. Rob

Re: Instance attributes collision

2006-02-15 Thread Rob Kinyon
od a(::CLASS $self) from each role being excluded or are all the multimethod a(...)'s being excluded? Rob

perl6-all@perl.org

2006-01-26 Thread Rob Kinyon
; > } > } How about just inheriting from Hash? class Gollum extends Hash; method postcircumfix:<{}> (Golum $self, Any $key, Any $value) { die "Nasssty Hobbitses" if $value.does(Hobbit); $self.NEXT.{}( $key, $value ); } Rob

perl6-all@perl.org

2006-01-26 Thread Rob Kinyon
dd Hash-like behavior to something that already has a postcircumfix<{}> because it probably has that behavior already. Rob

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Rob Kinyon
On 1/25/06, Juerd <[EMAIL PROTECTED]> wrote: > Patrick R. Michaud skribis 2006-01-25 13:47 (-0600): > > On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: > > > I've changed the flipflop operator/macro to "ff", short for "flipflop". > > > This has several benefits. ... > > ...another of w

Parrot and PGE will save the day (was Re: "as if" [Was: Selective reuse of storage in &bless.] )

2006-01-20 Thread Rob Kinyon
On 1/20/06, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Fri, Jan 20, 2006 at 04:20:54PM -0500, Rob Kinyon wrote: > > Pros: Larry doesn't have to do anything more on the WMoT. > > Cons: The community, for some reason, really wants this > > auto-translat

perl6-all@perl.org

2006-01-20 Thread Rob Kinyon
unity to provide a translator for each of those. Then, use #2 for the others. Pros: The WMoT can punt in about half the cases. Cons: The WMoT cannot punt in about half the cases. Rob

perl6-all@perl.org

2006-01-20 Thread Rob Kinyon
On 1/19/06, chromatic <[EMAIL PROTECTED]> wrote: > On Thursday 19 January 2006 19:50, Rob Kinyon wrote: > > > Nothing. Just like it's not a problem if Perl6 uses one of the > > Ruby-specific PMCs for storage. In fact, the alternate $repr idea is > > specifica

Re: Perl 6's &bless is (seriously) broken

2006-01-20 Thread Rob Kinyon
oned in this thread, like overlapping > methods. Yeah it does because all $repr's are p6opaque with direct access being converted into attribute access. No method overlap. Rob

perl6-all@perl.org

2006-01-19 Thread Rob Kinyon
On 1/19/06, chromatic <[EMAIL PROTECTED]> wrote: > On Wednesday 18 January 2006 20:02, Rob Kinyon wrote: > > > On 1/18/06, chromatic <[EMAIL PROTECTED]> wrote: > > > > Answer me this then -- under your scheme, can I subclass a Perl 5 class > > > with P

Re: Perl 6's &bless is (seriously) broken

2006-01-19 Thread Rob Kinyon
On 1/19/06, Juerd <[EMAIL PROTECTED]> wrote: > Rob Kinyon skribis 2006-01-19 16:10 (-0500): > > There are no references in Perl6. > I have to admit, though, that I've never seen this statement, or > anything implying it. It's entirely new to me. > > Is your Per

Re: Perl 6's &bless is (seriously) broken

2006-01-19 Thread Rob Kinyon
&bless was a brilliant idea for Perl5. It's wrong for Perl6. Rob

Re: Class methods vs. Instance methods

2006-01-19 Thread Rob Kinyon
ull form everywhere). However, the underlying type system will only consider the structure of the type when doing its job." What's wrong with Perl doing things that way? duck-typing with names ... sounds like a plan to me ... Rob

perl6-all@perl.org

2006-01-19 Thread Rob Kinyon
On 1/19/06, Juerd <[EMAIL PROTECTED]> wrote: > Rob Kinyon skribis 2006-01-18 20:57 (-0500): > > Well, for one thing, you can't write OO code in P5. > > Nonsense. OO isn't a set of features, and OO isn't syntax. > > Granted, syntax can really help to unde

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
rue NEXT semantics, and the ability to completely rewrite the method dispatcher (if you really feel like it). I think we've gone well beyond &bless. Rob

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
On 1/18/06, chromatic <[EMAIL PROTECTED]> wrote: > On Wednesday 18 January 2006 19:39, Rob Kinyon wrote: > > > No, you want to specify the $repr in CREATE(). But, p6hash will still > > not be the same as a ref to an HV. Frankly, I think you're better off > > let

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
Perl5 and Python. Worrying about it in userland is just going to cause you headaches. Rob

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
On 1/18/06, chromatic <[EMAIL PROTECTED]> wrote: > On Wednesday 18 January 2006 19:11, Rob Kinyon wrote: > > > As for how that will be handled, I would think that it would be as follows: > > - in Perl6, objects created in another language will be treated as > &g

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
On 1/18/06, chromatic <[EMAIL PROTECTED]> wrote: > On Wednesday 18 January 2006 17:57, Rob Kinyon wrote: > > > Well, for one thing, you can't write OO code in P5. > > I'll play your semantic game if you play my what-if game. > > I have a fair bit of Perl 5 c

perl6-all@perl.org

2006-01-18 Thread Rob Kinyon
TOLOAD (or method_missing or whatever) to check .blessed_into and try that package, if one is set. Also, given that the semantics of a number of items is changing ( "".split(':') anyone?), how closely will P6 really mirror P5 behavior given identical code? Rob

Re: Class methods vs. Instance methods

2006-01-18 Thread Rob Kinyon
On 1/18/06, Larry Wall <[EMAIL PROTECTED]> wrote: > On Wed, Jan 18, 2006 at 01:56:53PM -0500, Rob Kinyon wrote: > : Today on #perl6, Audrey, Stevan and I were talking about $repr. A > : tangent arose where Audrey said that the difference between class > : methods and instance

Class methods vs. Instance methods

2006-01-18 Thread Rob Kinyon
-intuitive. I think that class methods should be explicitly defined as class methods and you cannot call a class method upon an instance, just as you cannot call an instance method upon a class. Plus, this should be determinable (for the most part) at compile time, which is a bonus, imho. Thanks, Rob

Re: Indeterminate forms for the Num type.

2006-01-17 Thread Rob Kinyon
int of boxing to provide a hardware-independent dependable solution at the cost of additional cycles? Rob

Re: The old "$x will not stay shared" thing.

2006-01-16 Thread Rob Kinyon
al" issues where it might or might not reference $x. I'm okay > with requiring lexical scopes to have some existing relationship > with dynamic scopes, especially when we know some initialization is > required. What other forms would be useful other than "our sub g {...}"? If they're useful, shouldn't they have keywords? Rob

Re: Table of Perl 6 "Types"

2006-01-12 Thread Rob Kinyon
@_[0] + 1 } and a prev of { @_[0] - 1 } (boundschecking against the limits of the type, of course) ... ? That sounds reasonable and dwimmish to me. Rob

Re: Table of Perl 6 "Types"

2006-01-12 Thread Rob Kinyon
And it just DWIM for numbers like 1.2 ( -> 2.2). If Real is what 1.2 is implicitly coerced into, what do I do now? Remeber a few truisms: * The most common usage of Perl after bad CGIs is systems administration. * The most powerful feature of Perl for sysadmins is the scalar Rob

Re: Junctions again (was Re: binding arguments)

2006-01-05 Thread Rob Kinyon
true, then $x > $y is false. Otherwise, the definitions of <= and > have been violated. And, if I can't put them in a <=, then Perl should complain very loudly, just as if I put something else that shouldn't be put into <=, like a Person object. If I call min() or min2() with a Person object and an array, I should expect loud complaints from the runtime. If a junction cannot behave itself in a numeric comparison, then similar complaints should be made. Rob

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread Rob Kinyon
ted given the possibility of tying variables (or is this a Perl5ism that is being discarded in Perl6?) Rob

Re: relationship between slurpy parameters and named args?

2005-12-30 Thread Rob Kinyon
py list of arrays' or 'the rest > of the arguments, without flattening'. If I *really* want aggressive > flattening then I can call, say, @slurpy_param.flatten Does this imply that [EMAIL PROTECTED] === @slurpy.flatten ? Or, put another way, can't we just say that prefixed * is symbolic notation for flatten() in the same way that postfixed [] is symbolic notation for slice()? Rob

Re: Array/list transformations.

2005-12-27 Thread Rob Kinyon
On 12/27/05, Larry Wall <[EMAIL PROTECTED]> wrote: > On Tue, Dec 27, 2005 at 12:10:45AM -0500, Rob Kinyon wrote: > : Creating an array whose positions are aliases for positions in another > : array can be useful. How about > : > : my @s := @a[0,2,4] is alias; > : &

Re: Array/list transformations.

2005-12-26 Thread Rob Kinyon
rray can be useful. How about my @s := @a[0,2,4] is alias; @a[2] = 3; # @s[1] == 3 @s[1] = 4; # @a[2] == 4 The default slicing behavior would default to "is copy", to preserve the current semantics. Does that sound reasonable? Rob

Re: Iterating over complex structures

2005-12-25 Thread Rob Kinyon
Of course, this doesn't work for arbitrary complex structures, but I don't think anything would work for those. Rob

Re: handling undef better

2005-12-17 Thread Rob Kinyon
quot;This should print out." } I'm not sure that works with the Principle of Least Surprise. While I cannot say what it is, you're saying that I can now say what it isn't. While that follows from typing, that doesn't follow from the common understanding of undef. Rob

Re: handling undef better

2005-12-16 Thread Rob Kinyon
as for people that like to turn > strictures or warnings off, I suggest that there can be an optional > feature, perhaps a pragma or better a core module, where a developer > can say that they want undefs to automatically become zero in numeric > contexts or an empty string in string contexts, or false in boolean > contexts, etc. But they should have to explicitly activate that > feature, like saying "treat undef as 0 in all my code", and this > treating would not happen by default. No - a stricture. :-) Rob

Re: relational data models and Perl 6

2005-12-16 Thread Rob Kinyon
ason than > to cast a string to your new data type. Otherwise, your data types > would only be constants because you would have no way of assigning a > value. Fair enough. One would need to be able to convert back and forth between the base type (Int, String, etc) and the type. Rob

Re: relational data models and Perl 6

2005-12-16 Thread Rob Kinyon
On 12/16/05, Ovid <[EMAIL PROTECTED]> wrote: > --- Rob Kinyon <[EMAIL PROTECTED]> wrote: > > > As for the syntactic sugar, I'm not quite sure what should be > > done here. And, with macros, it's not clear that there needs > > to be an authoritative ans

Re: relational data models and Perl 6

2005-12-15 Thread Rob Kinyon
ring thoughts. Bonus points to whomever can help me bridge the gap between what I just blathered and an elegant solution to Sudoku. Rob

Re: Modular versions and APIs

2005-12-08 Thread Rob Kinyon
On 12/8/05, Larry Wall <[EMAIL PROTECTED]> wrote: > [snip] Certainly, as you speculate, if different authors want > to share an API, they can give it an "API" author that knows how to > delegate to one of the authors. Would you mind elaborating on this some more? Thanks, Rob

Re: Perl grammar for Perl5 -> Perl6

2005-12-08 Thread Rob Kinyon
was amenable to parsing by Perl 6 rules (with a little help from a > bottom-up operator-precedence expression parser.) Once Patrick is done with PGE, will it be able to parse Perl5? If so, why aren't we focusing on that? Rob

Capabilities in Perl6?

2005-12-01 Thread Rob Kinyon
grant ( Sub, Var, [Var, ... ] ) revoke( Sub, Var, [Var, ... ] ) It is an error to: * attempt to grant/revoke access to a variable you don't have access to * attempt to grant/revoke access to a variable that isn't in scope for the grantee Thanks, Rob

Re: type sigils redux, and new unary ^ operator

2005-11-23 Thread Rob Kinyon
On 11/23/05, Larry Wall <[EMAIL PROTECTED]> wrote: > : I'm also puzzled that you feel the need to write 0..$n-1 so often; there > : are so many alternatives to fenceposting in P5 that I almost never write > : an expression like that, so why is it cropping up that much in P6? > > Couple reasons occu

Re: Lazy lists in Str context

2005-11-23 Thread Rob Kinyon
could potentially do different things, including possibly run out of memory in some cases. Plus, what if the @list isn't lazy? Better, I think, would be: say substr( ~(1..Inf) is lazy, 0, 10 ); Or, have substr()'s signature be: sub substr( Str $str is rw is lazy, Int $start, Int $?end, Int $?replacement ); Rob

Re: Lazy lists in Str context

2005-11-23 Thread Rob Kinyon
> > Flattened lists would still loop forever (or fail): > > say **(1..Inf); > > $s = substr( ~( **(1..Inf) ), 0, 10 ); This would work, I think, if ranges were convertable to iterators, stringification was lazy, and substr() informed the stringification of how much it needed to do. I'm not sure how feasible that last one is ... Rob

Re: type sigils redux, and new unary ^ operator

2005-11-23 Thread Rob Kinyon
On 11/23/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > On 11/23/05, Rob Kinyon <[EMAIL PROTECTED]> wrote: > > On 11/22/05, Larry Wall <[EMAIL PROTECTED]> wrote: > > > > > > for ^5 { say } # 0, 1, 2, 3, 4 > > > > I read this and I

Re: type sigils redux, and new unary ^ operator

2005-11-22 Thread Rob Kinyon
d be -1 (under 2's complement) and ^1 would be -2. I'm not sure where this would be useful, but that's what comes to mind when discussing a unary ^. Thanks, Rob

Re: statement_control() (was Re: lvalue reverse and array views)

2005-11-21 Thread Rob Kinyon
" and ".". The key would be that the $actions arrayref would get push'ed/pop'ed as you enter/leave a given lexical scope. Obviously, this could be optimized to an extremely large degree, but it -should- work. Rob

statement_control() (was Re: lvalue reverse and array views)

2005-11-20 Thread Rob Kinyon
} > > # for restored, as the modified for went out of scope: > for -> $item { say $item } > # "a\nb\nc\n" Is there a list of the statement control items that are implemented as such vs. implemented in another way? Thanks, Rob

Re: lvalue reverse and array views

2005-11-20 Thread Rob Kinyon
of a string modify the original? Rob

Re: Thoughs on Theory.pm

2005-11-11 Thread Rob Kinyon
hat for all b in N, b != 1, there is a unique predecessor. If we have that, then we get the laws of arithmetic. Is it possible to put that into the type inferencer if the types are defined as iterators? Kind of like Church numbers, but in P6 notation. I think that by defining our types as iterators, we can satisfy the succ/pred requirements of Peano's, meaning we have the arithmetic rules. Rob

Re: What's the latest on Iterators?

2005-11-11 Thread Rob Kinyon
angeable). And, if you pass (1..Inf) to map/grep/sort, it would HAVE to return an iterator back, otherwise you'll hang at that instruction. Of course, if you said "while (my $n = 1..Inf) { }", it's on your head to provide a "last" in there somewhere. Rob

Re: given too little

2005-11-10 Thread Rob Kinyon
> But if we have a mandatory type inferencer underneath that is merely > ignored when it's inconvenient, then we could probably automatically > delay evaluation of the code. . . . I'm not so certain that ignoring the mandatory type inferencer is a good idea, even when it's inconvenient. I don'

Re: Implicit Role Declarations (was Re: implicitly doing a role)

2005-11-08 Thread Rob Kinyon
here immediately springs into being > a Dog role empty of everything but the expectation that whatever does > that role provides everything publicly accessible that an instance of > the Dog class does. In other words, a role is just a closed class and a class is just an open role? Larry stipulated this about a month ago. Rob

Re: Sometimes MakeMaker won't make.

2005-11-07 Thread Rob Bloodgood
; ); > > Try that... Well... I don't know if your conjecture is true, but your suggestion worked like a charm. Thanks! (and now I'm on my way to reorganize my other distribution...) L8r, Rob

Sometimes MakeMaker won't make.

2005-11-07 Thread Rob Bloodgood
what I named above and the *~ backup files that emacs creates. Still no luck. I type make, I get pm_to_blib and blib/* skeleton but my files don't get copied into blib. Since I don't think I'm stupid, but I'm willing to admit ignorance: WTF??? What did I miss here?? TIA! L8r, Rob

Re: Perl6 perlplexities [was: "Re: $1 change issues..."]

2005-11-07 Thread Rob Kinyon
FAR outweigh any additional complexity. Ruby could benefit from this, too. (While first-class blocks rock my world, the weird subroutine signature stuff most certainly doesn't.) Rob

Re: Perl6 perlplexities [was: "Re: $1 change issues..."]

2005-11-07 Thread Rob Kinyon
On 11/7/05, Michele Dondi <[EMAIL PROTECTED]> wrote: > On Fri, 4 Nov 2005, Rob Kinyon wrote: > > > So, for a bit of extra complexity, I get peace of mind for myself and my > > users. > > The point being, and I'm stressing it once again but no more than once, &g

Re: Perl6 perlplexities

2005-11-04 Thread Rob Kinyon
perspective. Almost makes me wonder how much trouble it would be to implement this in P5 ... Rob

Re: implicitly doing a role

2005-11-04 Thread Rob Kinyon
re the reasons that they should or shouldn't? I say no. It goes back to does a role provide a list of function names with possible default implementations or does it provide a behavior that is supported by a set of related functions that one can override, if desired. What you're proposing assumes that roles are nothing more than jazzed up Java interfaces. I would hate to see that happen. So, I say that it should be the latter. Rob

Re: Perl6 perlplexities [was: "Re: $1 change issues..."]

2005-11-04 Thread Rob Kinyon
oo} = 3; The problem is with the subroutines that aren't real methods with correct protection mechanisms. So, for a bit of extra complexity, I get peace of mind for myself and my users. (Oh, and Ruby has first-class block. W00T!) Rob

Re: $_ defaulting for mutating ops

2005-11-04 Thread Rob Kinyon
rl6 allows assignment to be overloaded like Ruby does. If it does, then the two expressions aren't guaranteed to be identical as they are now in Perl5. Rob

Re: Role Method Conflicts and Disambiguation

2005-11-03 Thread Rob Kinyon
should be able to freely > disambiguate or override using anything it want's to. It need not be > related at all to it's subroles. To further expand on this, D's disambiguation of method foo() could be: role D does C { method foo() { Completely::Unrelated::foo() } } Rob

Re: syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-03 Thread Rob Kinyon
n, if you use a grammar extension, ALL bets are off within that scope until you've read the documentation. Literally anything and everything can happen, if the author deemed it so. It's a source filter-like construct that doesn't suck because source filter-like constructs are part of the spec. Rob

Re: $_ defaulting for mutating ops

2005-11-02 Thread Rob Kinyon
is just a Perl-ism. The PoLS doesn't apply. Yes, from a consistency point of view, ALL operators should default to $_ or some other sensible item ($*STDIN for <>, etc). However, the PoLS does need to guide our decisions. Rob

Re: Role Method Conflicts and Disambiguation

2005-11-02 Thread Rob Kinyon
On 11/1/05, Jonathan Lang <[EMAIL PROTECTED]> wrote: > Rob Kinyon wrote: > > > 1. choose one of a set of available methods to call its own. > > > 2. create a version of its own. > > > 3. pass the buck. > > > > #1 and #2 are identical. Stevan and I h

Re: Role Method Conflicts and Disambiguation

2005-11-01 Thread Rob Kinyon
ll be some sugar to allow #1 to be its own syntax, but it should be viewed as a #2. Rob

Re: Role Method Conflicts and Disambiguation (Theory-theoretic take)

2005-10-28 Thread Rob Kinyon
d on the fact that classA does roleAB means something in terms of the functionality that classA provides to me. I don't want it to be a glorified can() check. That does no-one any good. Rob

Re: Role Method Conflicts and Disambiguation

2005-10-28 Thread Rob Kinyon
vate concept that C++ has. (I don't agree with the protected concept, but private vs. public is good.) Doing it any other way leads to the following: if A does rA and B isa A and B defines an attribute that conflicts with the one provided by rA, how on earth is that supposed to be detected? Especially given that the inheritance tree of a class can be modified at runtime. Rob

Re: $_ defaulting for mutating ops

2005-10-28 Thread Rob Kinyon
> But IMHO the reduction in typing for this relatively minor issue is not > really worth the surprise to newbies at seeing operandless operators. AMEN! Rob

Re: Roles vs. Classes (was Re: Ways to add behavior)

2005-10-27 Thread Rob Kinyon
On 10/27/05, Larry Wall <[EMAIL PROTECTED]> wrote: > On Thu, Oct 27, 2005 at 05:37:13AM -0400, Rob Kinyon wrote: > : Will I be able to do something like: > : > : package Foo; > > Hmm, you just started in Perl 5 mode. > > : $*VERSION = 1.3.2; > > Perl 5 would

Re: +$arg changed to :$arg

2005-10-27 Thread Rob Kinyon
ou say something "won't play in Peoria", you're saying that it's unlikely to be accepted by the masses. Rob

Re: Roles vs. Classes (was Re: Ways to add behavior)

2005-10-27 Thread Rob Kinyon
On 10/26/05, Larry Wall <[EMAIL PROTECTED]> wrote: > On Wed, Oct 26, 2005 at 07:35:05PM -0700, chromatic wrote: > : On Wed, 2005-10-26 at 21:58 -0400, Rob Kinyon wrote: > : > : > Plus, the argument is a straw man. Instead of: > : > > : > class Some::Class is a

Re: Roles vs. Classes (was Re: Ways to add behavior)

2005-10-26 Thread Rob Kinyon
n other words, it can cache all the method lookups at compile-time. That's a substantial savings. If they're open classes, the runtime has to throw out all the cached lookups the moment any of the classes upstream are modified. Plus, the argument is a straw man. Instead of: class Some::Class is also { } you would do: class My::Version { does Some::Class; } Problem solved. Rob

Re: Roles vs. Classes (was Re: Ways to add behavior)

2005-10-26 Thread Rob Kinyon
On 10/26/05, chromatic <[EMAIL PROTECTED]> wrote: > On Wed, 2005-10-26 at 20:29 -0400, Rob Kinyon wrote: > > > I would prefer to use roles as they're closed by default, leaving > > "class" to be my powertool, if I need the power. > > I don't unde

Roles vs. Classes (was Re: Ways to add behavior)

2005-10-26 Thread Rob Kinyon
to create immutable classes? Given that roles and classes now seem to differ only in their mutability, I can't see a reason why I would use class as my default object definer. I would prefer to use roles as they're closed by default, leaving "class" to be my powertool, if I need the power. Rob

Re: Ways to add behavior

2005-10-26 Thread Rob Kinyon
all of this? I hope it's not through repeated eigenclasses (or whatever they're called this week) ... that just sounds too heavy. 2) Isn't Dog|Cat kinda declaring a kind? Thus, can't you say "my Dog|Cat $catdog;" and be talking about a kind? I would think that a "named kind" is just a role ... 3) Aren't classes mutable and roles immutable by default only? Or has this changed? Rob

  1   2   >