have that.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me dodges cabbages like macalypse log N: neeyah!
pgpaUXI5Wijpd.pgp
Description: PGP signature
borrow to make our
Prelude.pm prettier, and our code a little more generic.
Mechanical conversion from perl 5 can use the fully qualified
instances of '==' and 'eq' in the Str and Num roles.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me beats up some cheese
just that the
default trigger should the actual execution of chunks of code.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sushi-spin-kicks : neeyah
pgpSLGwKeTOMi.pgp
Description: PGP signature
to
$_.method or $object.method.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: uhm, no, I think I'll sit
of crap into any structured crap.
It's only affinity towards real strings and characters is the
builtin library of useful rules.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me has realultimatepower.net: neeyah
pgp54WMN4RUfZ.pgp
Description
On Wed, Jul 13, 2005 at 00:46:49 +0300, Yuval Kogman wrote:
Perhaps the most interesting aspect of the string-is-a-list mindset
is that Parsec can parse any list of crap into any structured crap.
It's only affinity towards real strings and characters is the
builtin library of useful rules
the multis together to get well-defined
semantics.
That seriously sucks.
Multis rock because they let you append to an interface from your
perspective.
If it's just a pretty form of casing, then we aren't gaining
anything, IMHO.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
, that was properly ordered, mmd
is useful as a subset of it's behavior - it's just pattern matching.
This is nice, but has none of the extensibility that MMD can offer
if done differently.
On Fri, Jul 08, 2005 at 12:18:51 +0300, Yuval Kogman wrote:
On Fri, Jul 08, 2005 at 08:50:49 +, Luke
class
heirarchy in your head.
That's why under the fourth steps I detailed that MI confusions are
a fatal error, possibly at compile time.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah
pgpAbl8W9mHfk.pgp
On Fri, Jul 08, 2005 at 14:26:20 +0300, Yuval Kogman wrote:
http://svn.openfoundry.org/pugs/docs/notes/mmd_match_order.txt now
contains a proposal fofr some clear semantics on parameter coercion
and MMD, if anyone cares.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung
gotten too complex to be predictable.
I think that may be right, but just for junctions it's very
tempting.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me groks YAML like the grasshopper: neeyah!!
pgpYVPe9ak2Zy.pgp
Description: PGP signature
=)
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sneaks up from another MIME part: neeyah!
pgp1bev1lj7CN.pgp
Description: PGP signature
, or whatever it's called (stevan?).
I'm not sure I know how to oppertunistically 'staticize' this,
though.
Interesting paper, although admittedly I only skimmed it.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me dodges cabbages like macalypse log N: neeyah
is is a bigger mistake.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: : neeyah!
pgpJPtw4t52Mb.pgp
Description: PGP signature
of the context? Then we can use C casting
syntax, and it'll actually make sense.
(where { ... })$value
;-)
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me supports the ASCII Ribbon Campaign: neeyah!!!
pgpgzg9AWkDU5.pgp
Description: PGP signature
-similar, the looser/tighter concept appears valid).
I like that =)
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me has realultimatepower.net: neeyah
pgpjhRyhnok4i.pgp
Description: PGP signature
On Fri, Jul 08, 2005 at 16:45:09 -0400, David Storrs wrote:
Could we break them out into separate threads so that our poor summarizer
doesn't go
bonkers?
See? That's what specialization/particulation is good for. Thanks
for strengthening my point!
--
() Yuval Kogman [EMAIL PROTECTED
://svn.openfoundry.org/pugs/docs/notes/mmd_match_order.txt which
proposes a DWIMish sort function.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me has realultimatepower.net: neeyah
pgpOI04zyeSfW.pgp
Description: PGP signature
.
My claim is that it doesn't need to feel kludgy.
A macro library kludging over a kludge is twice as kludgy as it was
before.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me does a karate-chop-flip: neeyah!!
pgpxgy79xINw9.pgp
Description
who hasn't thought about it - all it does is prevent me from
appending to his code conveniently.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me has realultimatepower.net: neeyah
pgpLKN2OUBLGS.pgp
Description: PGP signature
to enforce types.
I like facist programming when it can help me, so I would like to
see something like his proposal.
no autocoerce;;
my $y = 'blah';
my Int $x = $y; # compile time type error
This scheme is not perfect.. Maybe someone has an idea?
--
() Yuval Kogman
in mobile
GPG public key fingerprint = A071 E618 DD2C 5901 9574
6FE2 40EA 9883 7519 3F88
key id = 0x75193F88
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me beats up some cheese: neeyah
of defining a container of complex
things, it's still better than nothing.
This brings me to another issue - can I say what type the elements
of a list has, without putting it into a typed array?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me whallops
be :(*Int) and a recurring tuple type might
be :(*(Int,Str)).
That seems pretty nice, although not aesthetically appealing.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me whallops greyface with a fnord: neeyah!!!
pgpZ5w5VFtv0l.pgp
Description
anything, they are more like oh, it's ok, it can
pass as a
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sneaks up from another MIME part: neeyah!
pgpf36xn9g2CF.pgp
Description: PGP signature
.
Are signatures going to be an exposed first class object in Perl 6?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sneaks up from another MIME part: neeyah!
pgphFDjsur3cS.pgp
Description: PGP signature
role get it's own slot? What about MI/mixins?
Grazie
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me tips over a cow: neeyah!!
pgpY3osGEiO6Z.pgp
Description: PGP signature
reference, but
AFAIK proxy objects will give us that anyway, right?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me wields bonsai kittens: neeyah
pgpiaSDtG8T6t.pgp
Description: PGP signature
purposes it
implements lots of perl 6's non-core core.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me groks YAML like the grasshopper: neeyah!!
pgpXAWRMFPEnt.pgp
Description: PGP signature
)
Wonderful!
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me whallops greyface with a fnord: neeyah!!!
pgpEXOgsYEirP.pgp
Description: PGP signature
, but in a more concise way.
Perhaps an operator with ':' in it would be suitable.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me climbs a brick wall with his fingers: neeyah!
pgprhsuf3L5Zs.pgp
Description: PGP signature
a union
# with the complement of just -1
I've found myself replicating sets like these for accessing data
many a time in perl 5.
Maybe if refined this can be useful?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me wields bonsai kittens: neeyah
Please don't be lazy, everyone, and look at this:
http://svn.openfoundry.org/pugs/docs/
There are some more drafts that should be reviewed, and more will
probably follow.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: uhm, no, I think I'll sit this one
within the code it applies
to, and sometimes outside of it
you often want a volume knob for this behavior
you want several instances of usage to not conflict
I'd like to see what the design team can do about this.
Ciao!
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418
.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah
pgpE3lXT1h65V.pgp
Description: PGP signature
On Wed, Mar 23, 2005 at 17:43:52 +0200, Yuval Kogman wrote:
Hola... I've spend some time these last few days slowly getting
currying to work in pugs.
It should also be mentioned that I made magical $?SUB et al unbind
the sub.
In a curried sub, should that happen?
It looks more consistent
On Wed, Mar 23, 2005 at 11:53:06 -0800, Larry Wall wrote:
On Wed, Mar 23, 2005 at 05:43:52PM +0200, Yuval Kogman wrote:
: The algorithmic approach to binding some params:
:
: bind invocants
:
: bind named parameters, and keep leftover pairs for %_
:
: treat nonpairs
, but not anything else
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sneaks up from another MIME part: neeyah!
pgpPp0zr5P5Yv.pgp
Description: PGP signature
}
# or in perl5, maybe it could be done like:
sub value_added {
my $return = Returner::Smart-new(sub { original(@args) });
# Returner is an object that does Want based lookups
...
$returner-return; # could this do lvalue crap?
}
--
() Yuval Kogman [EMAIL PROTECTED
BTW, i should mention that given want { } in s06 is nice for
replacing the simple kind of wantarray usage cases, but not what
this message brought up.
In short, i did read it, so don't send me links ;-)
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me
is true.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me sneaks up from another MIME part: neeyah!
pgpRod53H02RA.pgp
Description: PGP signature
{ $OUTER::_.process($_) } .things;
}
or having to name the invocant every time I want to map {}.
Lastly, what is wrong with
$.method?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me dodges cabbages like macalypse log N: neeyah
On Tue, Mar 15, 2005 at 10:51:57 +0100, Juerd wrote:
Autrijus suggested indeed or id, of which I like indeed better,
because I'd like to continue using id with databases.
whether?
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me beats up some cheese
is quite rigorously tested edge cases are
pretty much tested for, and the implementation is very robust, and
has very explicit logic, provided you're willing to eat it.
I'd like to be able to exploit this more cleanly in Perl 6, and also
get easier and safer lazy loading of objects.
--
() Yuval
On Sat, Mar 12, 2005 at 21:21:23 +0200, Yuval Kogman wrote:
Hola,
Object::Realize::Later and friends in perl5 get the job done, but
have many caveats.
FYI, Juerd told me how to clean this up with Data::Swap (err,
Data::Alias) more cleanly in perl 5.
Thanks!
--
() Yuval Kogman [EMAIL
On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote:
What is output:
sub foo($x, ?$y, [EMAIL PROTECTED]) {
say x = $x; y = $y; z = @z[];
}
my @a = (1,2,3);
foo($x, @a);
And is
$a == foo $x;
The same?
--
() Yuval Kogman [EMAIL PROTECTED
to.
--
() Yuval Kogman [EMAIL PROTECTED] 0xEBD27418 perl hacker
/\ kung foo master: /me climbs a brick wall with his fingers: neeyah!
pgpE75VuNMBFy.pgp
Description: PGP signature
201 - 247 of 247 matches
Mail list logo