print this out and burn it :)
$rant_about_wasting_resources_and_climate_change ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Larry Wall wrote:
> On Thu, Jun 26, 2008 at 04:50:21PM +0200, Moritz Lenz wrote:
> : I assume that 'Num' is meant to be a non-complex.
> : Then it seems to make sense to assume:
> : Int is Rat
> : Rat is Num
> : Num is Complex
> : or am I off again?
>
> W
Trey Harris wrote:
> In a message dated Thu, 26 Jun 2008, Moritz Lenz writes:
>> I assume that 'Num' is meant to be a non-complex.
>> Then it seems to make sense to assume:
>> Int is Rat
>> Rat is Num
>> Num is Complex
>> or am I off again?
>
&g
Mark J. Reed wrote:
> On Thu, Jun 26, 2008 at 10:23 AM, Moritz Lenz
> <[EMAIL PROTECTED]> wrote:
>> Thanks for the effort, but it also raises new questions. For example:
>>> Int is Num
>> Rakudo doesn't do it that way, because the 'A is B' relatio
(cross-posting to p6l)
Ryan Richter wrote:
> On Thu, Jun 26, 2008 at 11:36:05AM +0200, Moritz Lenz wrote:
>> 2) How do we know which numeric type is a class and which is a role? Is
>> there an explicit spec about the types of number literals? That could
>> have some impac
nt.
What's our policy on that? Will a 1.WHAT always return Int? do we
guarantee (1..4).WHAT always to be 'Range'?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
should now that
sqrt() is ambigous, because there are two possible results, and will
revert to roots() for that.
Any thoughts?
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
-') ?
Probably the same as (~[1,3,5], 20).join('-')
> Thanks!
>
> Pm
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
t *g* (not serious)
I haven't thought a lot about the third option, and what it would mean
to the language as a whole, so I have no idea if it's a viable alternative.
Any thoughts on the topic are welcome. I hope I didn't confuse too much
here ;-)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
get declarative style constraint programming
> for free:
>
> subset Crosshair of Point where { $_.inside_of($target_zone) };
>
> Is that valid syntax?
Yes. See http://perlcabal.org/syn/S02.html#Polymorphic_types for similar
examples.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
d, optional argument which specifies the
operation mode? Or are they both "dump", and the regex engine does the
mapping from smart to dump itself?
Anyway, S29 needs clarification.
BTW the naming seems inconsistent to me: same*case* preserves *case*,
but same*base* preserves *
Ryan Richter wrote:
> On Tue, Jun 03, 2008 at 12:03:00PM +0200, Moritz Lenz wrote:
>> My last successful build was r18093 with GHC 6.6.1.
>> Maybe we should just die in Makefile.PL until somebody finds a fix.
>
> Maybe we should just revert the pugs source to t
with empty arguments? (or do
exceptions ignore POST blocks anyway?)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
because
the lexical scoping of the 'my' is orthogonal to the scope of the class.
class A {
my method foo { }
}
class A is also {
method bar {
# no way to access self!foo here
}
}
So is
our method !foo {}
allowed in classes? and is it the recommended way t
heers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
f you leave off the optional 'my' or 'our'
> that it defaults to 'my', or should it be 'our' like everything else?
>
> --John
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
ng for. Thanks.
>
> Makes you wonder why the 'given' keyword was added, when for/when is so
> close...
I'd assume 'given' provides scalar context onto its argument, 'for'
obviously provides list context.
But I guess the main difference is that &
John M. Dlugosz wrote:
> Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
>> John M. Dlugosz wrote:
>>
>>> I posted my current work at
>>> http://www.dlugosz.com/files/specdoc.pdf
>>> and .odt.
>>>
>>
>> 3.1.1
John M. Dlugosz wrote:
> Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
>>
>> This is described in depth in "Object oriented software construction" by
>> Bertrand Meyer.
>>
>>
> OK, reading about it in Wiki, I see what it's suppose
stating that type information is
determined at compile time, which seems like an optimization to me that
doesn't need to be in perl 6.0.0. Of course any implementer is welcome
to do perform that optimization where possible ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
dtional methods:
class MyMath {
method can_take_sqrt($x:){
$x >= 0;
}
method sqrt($x:){
PRE { $x.can_take_sqrt }
...
}
}
class MyComplexMath is MyMath {
method can_take_sqrt($x:){
True
}
...
}
That way a user of class MyMath can always cal
[EMAIL PROTECTED] wrote:
> Technically the Cartesian cross operator doesn't have an identity value.
It has.
The set which contains only the emty set, or in perl terms ([]);
Or am I missing something?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signa
John M. Dlugosz wrote:
> I'm taking a stab at turning the S\d\d documents into a formal standard.
That's certainly a nice idea, and much work. ++ for taking it.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
subversion aka svn.
The parrot repo contains parrot, rakudo (perl6 on parrot) and various
other languages, the pugs repo contains pugs, STD.pm (the grammar), some
of synopsis (in docs/Perl6/Spec/), kp6 (in v6/v6-KindaPerl6), smop (in
v6/smop/) and various other stuff.
Cheers,
Moritz
--
Moritz Le
this has been proposed and rejected before, please just tell me, I'm
only following Perl 6 development for about a year).
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
10n:en (or whatever) receives a list of pairs of
strings and variables to interpolate, ['$m' => $m, '\s' => undef].
It can then decide what to do with it.
Wait, that smells like macros, which are already specced - so never mind ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
I noticed that many test files contain "old" POD like this:
=pod
some description here
=cut
Should that all be replaced by the new POD?
=begin description
text here
=end description
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Descriptio
right string is longer than the left one, the remaining characters
my $str = "määh";
$str =~ s:bb/.*/mo i/;
is $str now 'mö i' ? Or does the space get a \N{COMBINING DIAERESIS}? Or
is it tranlated to \N{DIAERESIS}? What about other non-letter characters?
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
inferred from data dependencies.
I think that the concurrency synopsis is still useful for explicit
threading, STM and the like.
Also note that Perl 6 tries to preserver Perl's soul, and is not an
Erlang based language ;-)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
rrency.pod
(still a draft) contains a bit more helpful information.
> Hopefully I'm not inadvertently starting any kind of flame-fest
> about anyone's favorite concurrency model here :-D
Why flame, when we can have all of them at once? ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
me sort of constaint on the return value that
> they wouldn't want exceptional values.
return a native type?
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
en't read enough real
Perl 6 that is annotated with Pod 6.
So everybody reading this is now condemned to write an OO Perl 6 module,
and document it with Pod 6 ;-)
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
Smylers wrote:
> Moritz Lenz writes:
>
>> You could help by contributing some suggestions to what the new "Web"
>> module should be able to do, and how so. Web is hopefully "CGI done
>> right", and still in its early planning stage.
>
> Web modu
ould be changed to some extents.
You should discuss that on p5p, not here. Only Perl 6 is on topic here.
> Is there a place where we can add suggestions ? apart from the first one in...
> 2003 ? 4 years ago ?
You can write them here on p6l.
--
Moritz Lenz
http://moritz.faui2k3.
> language !
You could help by contributing some suggestions to what the new "Web"
module should be able to do, and how so. Web is hopefully "CGI done
right", and still in its early planning stage.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
rl.org/perl6/doc is very low.
I'd suggest something beneath <http://svn.pugscode.org/pugs/docs/>,
perhaps essentials/
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
rl.org/perl6/doc is very low.
I'd suggest something beneath <http://svn.pugscode.org/pugs/docs/>,
perhaps essentials/
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
rpreter/compiler rather hard - why should we stop with this
philosophy when talking about POD and POD-Parser?
I'd find it very annoying to have lines starting with '=' in a heredoc
beeing counted as POD. Humans don't think in terms of lines, but in
terms of visual blocks (at leas
Thomas Wittek wrote:
> Moritz Lenz:
>> =begin pod
>>
>> =head3 C
>> [..]
>> =end pod
>>
>> method from_string(Str $s){
>> # implementation of that method here
>> }
>>
>> Since method signatures are very expressive in
ass and
document it properly. I'm sure you'll end up doing the same as I did.
ATM I don't know that should be implemented, but perhaps somebody else
can think of a good way.
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
Moritz Lenz wrote:
> Thomas Wittek wrote:
>> Moritz Lenz schrieb:
>>>> I would also like semicolons to be optional.
>>> Most people don't ;-).
>> Oh, really? Source? :)
>
> I paraphrased Larry Wall. Iirc it was "everybody wants the semicol
Thomas Wittek wrote:
> Moritz Lenz schrieb:
>>> What makes Perl hard to read is the excessive use of special characters
>>> (/\W/).
>>
>> I disagree: The make it look ugly, but not hard to read.
>
> Even if it's "only" ugly: To what advantage
o implementation will ever finish.
I don't think most of are not open to new point of views, but regard p6
they just don't help atm.
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
n code here
Don't get me wrong, there's nothing bad in writing some critics, but
yours is impossible to realize in Perl 6, and therefore are it's hard to
call it constructive.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Hi,
brian d foy wrote:
> At the moment the file test operators that I expect to return true or
> false do, but the true is the filename.
that helps chaining of file test:
$fn ~~ :t ~~ :x
or something.
If you want a boolean, use
? $fn ~~ :x
or something.
HTH,
Moritz
--
Moritz Len
Hi,
brian d foy wrote:
> In article <[EMAIL PROTECTED]>, Moritz Lenz
> <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> brian d foy wrote:
>>> Under the section "The for Statement" in S04, it says that the diamond
>>> operator
>>&
[EMAIL PROTECTED]
That
seems more reasonable, because the command line arguments are stored in
@*ARGS.
I can't answer your question, sorry ;-).
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ - http://sudokugarden.de/ - http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
301 - 347 of 347 matches
Mail list logo