pugscode.org/ planetsix.perl.org/ | nopaste: sial.org/pbot/perl6 | evalbot: perl6: say 3; (or rakudo:, pugs:, elf:, etc) | irclog: irc.pugscode.org/
Set by mncharity on 5 January 2009.
eric256 mberends: sorry work called 00:03
i thought it was single line ;)
okay that will take me a while to understand but thanks! ;) 00:04
later 00:05
pugs_svn r24789 | particle++ | [S19] rip out option categories and services until they prove useful 00:53
pugs_svn r24790 | particle++ | [S19] address concerns about mixing -e and -e6 00:56
pugs_svn r24791 | lwall++ | [S11] clarify the intent of the -e6 remark not to be special syntax, but 01:20
r24791 | lwall++ | a natural outcome of -e and '6;'
cspencer perl6: class Foo { method list { say "bar" } }; my $f = Foo.new; $f.list 02:08
p6eval rakudo 35086: OUTPUT«too few arguments passed (0) - 1 params expected␤current instr.: 'parrot;Foo;list' pc 187 (EVAL_13:91)␤»
..elf 24791, pugs: OUTPUT«bar␤»
eric256 abandoned twitter in favor of a pure HTTP + IRC bot 02:44
pmichaud rakudo: class Foo { method list { say "bar" } }; Foo.new.list; 02:49
p6eval rakudo 35086: OUTPUT«too few arguments passed (0) - 1 params expected␤current instr.: 'parrot;Foo;list' pc 164 (EVAL_12:84)␤»
pmichaud interesting. Will fix after rvar.
eric256 the bot can now add people as collaborators..... 03:10
perl6examples: add eric256
hmmm it should probably announce that you've been added, but this is nice and quite ;)
literal you mean quiet? 03:12
mberends are there security concerns with adding collaborators via irc? 03:15
literal not if the bot only obeys commands from a certain hostmask, or requires authentication...
mberends perl6examples: add xxxx # only joking... 03:18
eric256 mberends: i don't think there realy are security issues 03:19
someone could abuse it, but then they could come on here and ask me to add them and then abuse it too
the barrier to entry is the same either way ;)
this is just easier on me ;)
mberends that's fair enough
eric256 so feel free to add people and/or edumacate people on adding themselves if i'm not around 03:20
mberends certainably 03:21
s1n eric256: have you run the euler code recently? 03:23
eric256 no 03:25
with our naming convention i'm hoping to automate nightly smokes of it though ;)
why? is there a problem with it? 03:26
s1n eric256: try it out, i'm getting segfaults on some 03:31
eric256: for example, prob004 segfaults for me
eric256 yea i get a segfault on 001-unobe and i'm waiting for a reply on prob004 03:32
s1n backtraces don't seem consistant 03:33
eric256 i've been getting segaults on large ranges lately
s1n i tried some of the new prefix operators pmichaud blogged about and it didn't crash from the RE(P)L 03:34
perl6: my $sum = [+] 1..5; 03:35
p6eval rakudo 35086: RESULT«15»
..pugs: RESULT«\15»
..elf 24791: OUTPUT«/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:117:in `block in to_dump0': undefined method `to_dump0' for nil:NilClass (NoMethodError)␤ from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:117:in `map'␤ from
../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:1...
s1n see, it works there, but if i put it into a script and run it, it segfaults
eric256 are you running the same version? that works fine on my rakudo 03:42
eric256 rakudo: my $sum = [+] 1..100; 03:43
p6eval rakudo 35086: RESULT«5050»
eric256 rakudo: my $sum = [+] 1..1000;
p6eval rakudo 35086: RESULT«500500»
eric256 rakudo: my $sum = [+] 1..10000;
p6eval rakudo 35086: RESULT«50005000»
eric256 rakudo: my $sum = [+] 1..100000;
p6eval rakudo 35086: No output (you need to produce output to STDOUT) 03:44
eric256 run a perl6 -v and see what revision you are on
mberends numeric overflow because Num is not (fully) implented. you get full precision to 1 million. 03:45
*implemented
s1n 35086 03:46
revision 35086 built on parrot 0.8.2-devel, for x86_64-linux-thread-multi
s1n ugh, spectest passes but i'm still getting segfaults 04:02
s1n is there any way of converting very large numbers (1e50) to something like the _full_ number 04:35
for example, "(5 ** 50).say" gives scientific notation, but i want the full number 04:36
s1n without going the grunt work of expanding the number myself that is 04:39
rakudo: (5**50).say 04:43
p6eval rakudo 35087: OUTPUT«8.88178419700125e+34␤»
s1n in other words, how can i get that full number in either a string or some other means for processing (i.e. printing)?
azawawi_ hi masak 05:28
masak azawawi_: hi 05:28
azawawi_ how r u? i hope you're doing fine/great ;-)
masak is happy because he got up early today 05:29
azawawi_: how about you?
azawawi_ is happy since he has like 25 mins to hack before going to work ;-)
masak sounds like we're in approximately the same time zone :) 05:29
azawawi yup
azawawi 7:30am 05:30
masak 6:33 here. 05:30
azawawi run rakudo script in Padre win32 worked today...Yay!
masak cool! 05:31
azawawi i cant find 'say' in S29
masak I see use.perl.org is back up.
azawawi: it's in S16.
azawawi: I don't know what to do about those yet -- maybe duplicate outright. 05:32
but it feels partly wrong.
azawawi i cant understand S29 is about functions 05:32
and say is a function right?
masak :) 05:33
yes.
you're right, you're right.
tell you what, I'll add it right away.
azawawi remove obsolete functions to another section head? 05:34
masak azawawi: say again? I didn't get that.
azawawi use the script you created, and take a look
i need a keyword or a list of keywords in =item -s 05:35
azawawi so S29 should be more parse friendly 05:36
masak azawawi: ah, so your problem is that the 'Obsolete' section contains items with multiple words?
azawawi so i type 'Obsolete' i get a keyword calltip on time for instance 05:37
s/so/so when/
masak azawawi: suggestion. add a special case for 'Obsolete', so that it's ignored when parsing S29.
azawawi or we can think a bit more generic and add a tag or something 05:38
to mark it as a function
masak sure, that works too.
azawawi so we can extract info from S29 or S16 or S06...
what do u suggest for the tag? 05:39
something like smart links but let us call it dumblinks ;-)
masak 'dumblinks'. I like that. :) 05:40
rakudo_svn r35091 | infinoid++ | [cage] Fix up some codetest failures. 05:40
pugs_svn r24792 | masak++ | [S29] put the C<polar> function inside a list, for consistency 05:43
masak ok, so IO currently doesn't have a =head2 in S29.
I'll add one.
I also expect some people will protest; this is duplication of information, after all. 05:44
we'll see what happens. the revert button is always close by.
I'll add print, say and printf for the time being. 05:47
oh, and getc. 05:48
we should probably add a readline eventually too. 05:49
azawawi if you add for instance a link to other Synopsis-es in =item...
masak azawawi: yes, that's what's done in some places. I find that unsatisfactory, however, if S29 is to function as a sort of 'perldoc perlfunc'. 05:52
hm.
azawawi perldoc perl6s29func ;-) 05:53
masak I'm just about to commit. maybe I should abort and just add 'see S16' for these four functions?
what do you think?
azawawi i think we need to think about it a bit
masak ok. aborting commit.
azawawi since i have like 5 min before going work ;-) 05:54
let ask moritz_ about that today
masak oh, we can fix it before you go :)
let's be conservative and add 'see S16' for the time being.
and then later, if it's a good idea, we'll copy the content. 05:55
azawawi and when the script sees S\d\d it should jump there and index its =item 05:56
masak azawawi: I can't blame you for lack of ambition :)
pugs_svn r24793 | masak++ | [S29] added mentions of getc, print, say and printf, with references to S16 05:59
r24793 | masak++ | for details
r24794 | masak++ | [S16] slight disambiguation 06:00
masak purrs 06:01
azawawi lex cache for parsing std.pm => 1660 file
lex cache for parsing hello.p6 => 840 files 06:02
masak sounds impressive. in a slightly sick way. 06:03
azawawi work & 06:07
thx masak++! cya in the evening...
masak buubot: spack succ 06:12
buubot masak: S02-bits.pod:1 S03-operators.pod:11 S04-control.pod:9 S05-regex.pod:25 S06-routines.pod:4 S07-iterators.pod:1 S09-data.pod:3 S12-objects.pod:7 S16-io.pod:9 S26-documentation.pod:1 S29-functions.pod:4
masak buubot: spack pred
buubot masak: S02-bits.pod:11 S03-operators.pod:6 S05-regex.pod:2 S06-routines.pod:4 S09-data.pod:2 S10-packages.pod:1 S11-modules.pod:1 S12-objects.pod:1 S26-documentation.pod:3
masak buubot: spack \bsucc\b 06:13
buubot masak: S03-operators.pod:3
masak buubot: spack \bpred\b
buubot masak: S03-operators.pod:2
masak that's better. 06:14
ok, so .succ and .pred currently have one behaviour on Num, and another on Bool. 06:15
adding that to S29.
pugs_svn r24795 | masak++ | [S29] added .succ/.pred for Num, Int and Bool 06:25
mtnviewmark ping masak.... 07:17
masak mtnviewmark: I'm here.
mtnviewmark do you ever sleep?
:-)
masak mtnviewmark: actually, yes. sometimes.
but today I decided to get up early.
I'm glad you have the impression that I'm always here.
mtnviewmark so - would you like to take a gander at the new chart and would you be willing to proof the factual content (operator names, precedences, etc...)? 07:18
masak yes, of course.
URL?
mtnviewmark I actually think you are the oracle behind std: !
masak mtnviewmark: I'm not denying that.
mtnviewmark I could e-mail it to you 07:19
assuming that e-mail I ahve for you works (I sent you e-mail the other day)
masak std: $*oracle_behind === 'masak' ?? 'I knew it' !! 'oh well'
mtnviewmark: it works 07:20
p6eval std 24795: OUTPUT«00:05 86m␤»
masak mtnviewmark: I didn't reply because you came here instead. 07:20
mtnviewmark np
mtnviewmark anyone else I should mail this to? 07:24
masak mtnviewmark: that's a difficult question to answer. I'm sure many would be interested/eager to help. 07:24
but we work mainly through IRC.
mtnviewmark true - but I'm a bit wary of putting it out there in this "almost done" state -- it is useful enough to get wide circulation -- and, as you'll see, the design part isn't done 07:25
okay - well, I'll start with you
sent
comin' at ya on the inter-toobs 07:26
masak I'm sure moritz_ would be interested. probably jnthn and pmichaud also.
ah! it's here.
masak looks
mtnviewmark hopes masak has a good PDF reader 07:27
masak it's sufficiently good.
ooh -- very different layout.
masak I agree with you on the non-operators -- only the feed thingies feel like ops 07:28
mtnviewmark yes - well, things changed radically since 2004
masak I can imagine... although for me, it has seemed very gradual. 07:29
kudos for doing this -- it's both useful and nice to look at. 07:30
mtnviewmark you should see: i have a printout of the old table with circles and arrows sketching how things changed - it is like a crazy "all change positions" dance
masak :) 07:31
mtnviewmark welcome - there is still a few days worth of work to do on it -- now that I have the factual data in place and laid-out, then there is endless tweaking and enhancing the design --- My guess is it will be done in a week or two
any how -- I'm off to bed - if you find problems in the text, e-mail me please! If you want to pass it on to a few others please do, though I don't think it is ready to be posted on a web site.. 07:32
thanks again
masak np 07:33
masak mtnviewmark: are you sure there should be 8 variants of ff and fff? 07:33
mtnviewmark they are all in Syn03, no?
masak I'd have to check S03 again.
I can't imagine that they're all different.
but then again, it might just be my lack of imagination...
mtnviewmark: ok, with your permission, I'll fwd it to moritz_, jnthn and pmichaud. 07:34
mtnviewmark please
masak ah, you're right about the ff and fff variants. 07:35
mtnviewmark well - there is no description of ff vs. fff except that fff is "sed style"
masak mtnviewmark: I think they correspond to Perl 5 .. and ... , respectively
mtnviewmark hmmmm, okay
masak so, 'perldoc perlop'. 07:36
mtnviewmark yes- I was off reading it... mind you, it is sort of a numbing thing to read the description of 07:38
and "awk style" vs. "sed style" only helps those who came from there -- and while I *did* come from there (I don't want to tell you how many years ago) -- I long sinced GC'd by brain of awk and sed in favor of perl 07:39
masak mtnviewmark: Steve Yegge once used that part of the documentation as evidence that Perl is a very odd language.
uh, here: steve.yegge.googlepages.com/ancient...uages-perl 07:40
masak Stevey has since repented somewhat. 07:41
mtnviewmark heading to bed - later and thanks 07:46
pugs_svn r24796 | masak++ | [S29] added any, all, one and none as subs and methods on List and Hash 08:34
masak is there a way to define new metaoperators in Perl 6? 09:10
Matt-W I hope so 09:11
Although I've never seen any syntax for it
masak I'm not so sure it's possible. 09:14
masak (Dave Whipp)++ # dave.whipp.name/sw/perl6/perl6_xmas_2008.html 09:23
mberends Hmm, currently enjoying that as well 09:26
Matt-W that's good 09:27
it was that post on the scripting games that got me trying out perl 6 again, but I did my own thing rather than trying those problems
mberends discovers that Block is already registered as a class name 09:34
avar masak: S03 L</Meta operators
> ... would seem to suggest that metaoperators are just named by convention 09:35
lambdabot <no location info>: parse error on input `...'
avar i.e. ?+ ~+ etc are manually defined, so if you wanted a new metaop you'd have to define one FOO+ op, one BAR+ op etc
eternaleye masak: Perhaps it could be defined in a similar way to ??!!, with it looking for an operator between the two parts rather than an expression, and using apply() with that captured op 09:57
masak S16:409 defines C<prompt> as an only sub. is there a particular reason why C<prompt> is C<only> while virtually everything else in S16 and S29 is C<multi>? 12:32
mberends there is probably only one sensible way to call it, namely with a Str 12:35
masak mberends: so if I'd like to do `prompt(42)`, I should forget about it and define my own wrapper instead? 12:36
mberends how would `prompt( ~ 42 )` go? 12:40
masak that'd work. just unusual to have to do the casting manually in Perl.
wolverian huh. surely coercions are taken into account?
(implicitly) 12:41
masak wolverian: not that I know of.
Str is Str and Num is Num.
at least in parameter passing.
mberends I get type mismatch errors regularly ( with typed parameters ) 12:41
wolverian I thought otherwise, but I don't know why. 12:42
masak wolverian: there's been talk about relaxing many of the type signatures in S29 from e.g. 'Str' to 'of Str' or something like that. 12:43
mberends casting manually is also necessary from Match to Str assignment
masak mberends: that's because sometimes you'd want one and sometimes the other. 12:44
mberends yes, but when the lvalue is Str it's clear that coercion is required 12:45
masak haven't tried that 12:46
masak tries that
rakudo: my Str $s = "foo" ~~ /foo/; say $s
p6eval rakudo 35117: OUTPUT«Type mismatch in assignment.␤current instr.: 'die' pc 14950 (src/builtins/control.pir:204)␤»
mberends rakudo: my Str $s = ~ ( "foo" ~~ /foo/ ); say $s 12:48
p6eval rakudo 35117: OUTPUT«foo␤»
masak works as advertised, I would say.
mberends rakudo: my $s = "foo" ~~ /foo/; say "but this is a match: $s" 12:49
p6eval rakudo 35117: OUTPUT«but this is a match: foo␤»
masak mberends: aye, a Match that gets stringified in the string interpolation :) 12:50
mberends a Match can act like a Str, but it doesn't quack like one
masak more like it can turn into a Str when requested to. 12:51
mberends it's knocked my head at least ten times, so now I look out (and duck) 12:53
masak I think it's a matter of having the right expectations in this case. 12:54
I use the Match about half of the time and the Str about half.
mberends btw, I got into Match and so on thanks to the November code. love it! 12:55
masak mberends: glad to hear that. :)
Matt-W Hmm yes, one would expect stringification to be implicit in a string interpolation :) 13:00
masak it sure helps, aye.
mberends otherwise it would have to be "blah {~$foo}". yuk 13:01
Matt-W yes indeed 13:02
uck
what's the prefix operator for numify?
mberends +
Matt-W ah of course
thanks
masak and ? is for boolify.
mberends oh, will have to try that somewhere 13:03
masak often there's no need.
Perl 6 DTRT in most cases.
Matt-W I've not had to do much 13:04
and only explicit string conversion
usually with Match objects
mberends ditto 13:05
rakudo_svn r35120 | jkeenan++ | Applying patch submitted by Geraud Continsouzas in trac.parrot.org/parrot/ticket/135 (plus one small fix to CREDITS). 13:10
rakudo_svn r35122 | pmichaud++ | [rakudo]: spectest-progress.csv update: 279 files, 6171 passing, 0 failing 14:10
cj Trey: hey. I went to tag you in a photo on facebook, but it doesn't look like you've got an account. :) 14:13
mberends hey eric256++ 15:03
eric257 thanks....dunno what for but i'll take it ;) 15:06
mberends 256 -> 257 15:07
eric257 lmao ahh
yea apparently left IRC on at home...
eric257 tries to get motivated to work 15:10
masak eric257: do you have 256 homes?
eric257 hehe who do you think i am? John McCain? 15:11
[particle] std: sub perl6(:M($use|$no)) {...} 16:35
p6eval std 24796: OUTPUT«############# PARSE FAILED #############␤Unable to parse named parameter; couldn't find right parenthesis at /tmp/iy0EY3M7LQ line 1:␤------> sub perl6(:M($use|$no)) {...}␤ expecting whitespace␤00:05 83m␤»
[particle] std: sub perl6(:M($use)) {...} 16:39
p6eval std 24796: OUTPUT«00:05 84m␤» 16:40
masak anyone have an opinion on Str.warn? 17:02
if not, I'll consider the issue stalled for now, and move on. 17:04
cspencer_ perl6: class Foo { method list { say "bar" } }; my $f = Foo.new; $f.list 17:07
p6eval rakudo 35131: OUTPUT«too few arguments passed (0) - 1 params expected␤current instr.: 'parrot;Foo;list' pc 187 (EVAL_13:91)␤»
..elf 24796, pugs: OUTPUT«bar␤»
dwhipp Carl was concerned that Object.warn was "too much OO"
masak ooh, is that a bug I see?
cspencer_ it looks bugish
dwhipp I disagree, because p6 builtins don't default to $_ 17:08
[particle] dwhipp: carl is masak
masak dwhipp: I'm just not very eager to pollute the common classes with useless convenience methods.
dwhipp so "for @a { .warn if xxx }"
masak dwhipp: and I don't see the advantage of "message".warn over warn("message")
dwhipp: ah, hadn't thought of that. 17:09
dwhipp that's obviously true for literal strings
masak dwhipp: but in that case, it's even more important not to put .warn only on Str, because the elements of @a might be anything.
dwhipp yes, putting it on .Object seems right 17:10
[particle] yep, should be Object.warn i think
however, { 'foo' => 'bar' }.warn is funky
masak very well, I'll add it to S29 under "Object". 17:11
[particle]: why? just stringify.
[particle] well, i guess i'd write {...}.perl.warn in real code anyway
masak aye 17:13
TimToady Object.warn should just use warn($self)
and let MD handle it 17:14
masak but that's an implementation detail, no? the Perl user just sees the method .warn and the sub warn, without suspecting that one calls the other. 17:16
TimToady yes, but if .warn doesn't have the MD semantics that warn() does, it's also a matter of interface 17:17
masak TimToady: I'm writing the signature now. does `our multi method warn (Object $o:) is export` look about right?
masak must go, will backlog 17:19
TimToady is wondering what happens if $o is a Junction... 17:19
rakudo_svn r35135 | particle++ | [rakudo] fix typos in makefile template 17:20
TimToady arguably, some of these things should be in Any rather than Object
pmichaud (Any vs. Object) agreed. 17:22
TimToady we also need to carefully evaluate which forms are more basic, so that we don't end up doing SD -> MD -> SD -> MD ... 17:23
in general SD seems more basic than MD, so having SD redispatch to MD seems a bit strange, but if we make sure MD doesn't redispatch to Object/Any types, we're probably safe from cycles 17:24
rakudo_svn r35136 | pmichaud++ | [rakudo]: Change find_global -> get_global. 17:30
rakudo_svn r35140 | particle++ | [rakudo] refactor makefile template to create spectest_checkout and spectest_update targets; fix logic errors 17:40
r35144 | particle++ | [rakudo] add 'testable' make target to create perl6 executable, compile the test library, and update the official test suite
azawawi hi 17:57
masak should I put .perl, .print, .say, .printf and .warn in Any? 18:03
pugs_svn r24797 | moritz++ | [t/spec] correct some OO tests that I broke before, masak++
TimToady masak: yes, I think so 18:05
moritz_ I find it very un-intuitive that junctions autothread through .perl 18:06
TimToady if any(@x.perl) eq '42'
moritz_ TimToady: testing for the contents of .perl is never a good idea
TimToady nevertheless, it's sufficient if a Junction stringifies to whatever .perl would have produced 18:07
[particle] timtoady: is there a syntax for me to express something like: sub perl6(:M($use|$no)) {...} 18:08
TimToady :M(:use($no))
if you just want another alias
[particle] std: sub perl6(:M(:use($no))) {...}
p6eval std 24797: OUTPUT«00:05 84m␤»
[particle] as long as i can tell which alias was used, it'll work 18:09
TimToady you can't
[particle] feh.
i was hoping i could make -M and :use work, and -/M and :no
rakudo_svn r35153 | particle++ | [rakudo] rearrange makefile for maintainability 18:10
TimToady you just want :$M, :$use, :$no in that case
[particle] yes, okay. it's a bit ugly, but i think it'll work. any objection to that syntax?
TimToady I'm not terribly attached to -M 18:12
[particle] it's hardwired in many fingers, though
-U and -N could work 18:13
TimToady what is -u now?
and why not -/u instead of -n
[particle] that could work, but --/use is ugly 18:14
-u is free
TimToady I don't think I've ever seen someone use 'no' on the command line 18:15
[particle] here's current: perlcabal.org/syn/S19.html#Synopsis
TimToady and you can always say -e 'no whatever';
[particle] -e 'no strict;'
TimToady -e '6; ...' 18:16
[particle] i agree, it's not commonly used, but somebody's gonna want it.
i'll proceed with use, and leave no for later
TimToady in general I don't think we need to add shortcuts for things that can easily be worked around by actually using the language :) 18:17
[particle] the big thing rattling around it my head now is the metasyntactic options
++COMPILER -e 'CHECK{...}' ++/COMPILER
...this means every subsystem must accept -e 18:18
TimToady note that bare -e 'CHECK {...}' laready means that
*already
-e gives you the full power of Perl 6
[particle] troo
i wonder, does ++CMD...++/CMD execute immediately? 18:19
things like that are rattling around
should crystalize (hopefully) as i write about it
dwhipp I was looking into writing tests for S09 fixed size arrays: is "for @input -> *@a[ ++$n ] { ... } legal; and will it have the semantics of iterating increasing sized chunks from @input? 18:20
TimToady anything post compile could be handled with some kind of compiler directive like CHECK
CMD is pre though
also thinking about p5 errors like "Too late for -T"... 18:21
[particle] yes
i'm used to that error on windows :)
[particle] #!perl -T #too late! 18:21
TimToady dwhipp: I doubt it, the ++$n would be evaluated at compile time 18:22
TimToady and we haven't specced that arrays can behave like slices either 18:23
(in binding) 18:24
dwhipp My ++$n was a little extreme, but I was thinking one might write code that (e.g) calculated a number of columns to format the output; and used a fixed-size array to slurp them
TimToady might be an argument for treating the type as generic and instantiated at binding time, I suppose 18:25
not sure what the performance would be though
probably abysmal...
shower & # thinking 18:26
dwhipp if it's calculated once at the start of the loop, then probably not as bad as fully dynamic
TimToady seems ill defined as to scope 18:27
bbl &
dwhipp in what way?
I guess a similar Q relates to the simple case: " my $n = 42; my @a[$n];" -- hopefully legal to sue $n in that context without needing "BEGIN" block 18:29
masak dwhipp: I don't see why not. 18:45
dwhipp That was my thought ... but Larry seems concerned when we apply that same reasoning to point-block signatures 18:46
dwhipp I guess the limit case of the question is if the signature :( $size, *@array[$size] ) is legal 18:52
moritz_ a slurpy array with fixed size?
that looks *very* weird
dwhipp My use case was:
my $columns = 8; 18:53
for @input -> *@values[$columns] { say @values }
## prints 8 values per line
moritz_ while @input { my @cols = @input.splice(0, 8); say @cols }; # or something like that 18:54
dwhipp Yes, there's always MTOWTDI
moritz_ and I don't think there has to be a way to do everything with signatures 18:55
actually we discourage large numbers of positional arguments generally, because they are seldom useful in real world subroutines 18:56
dwhipp It's only one positional argument: it just happens to take up 8 positional slots :)
And this was a block, not a subroutine 18:57
azawawi moritz_: hi
moritz_ hi azawawi
dwhipp so no nasty semantics-at-a-distance issues
TimToady declarations are evaluated at compile time, including traits 19:03
but possibly we can do some indirection if a closure is found 19:04
my @a[{$n}]
but my concern is forcing run-time instantiation of generic types, which could get expensive, esp when accidental
bbl & 19:05
azawawi moritz_: i need s// for removing ansi escape sequences... 19:11
cspencer am i able to define infix operators written in perl6 in rakudo yet? 19:15
i'm not quite sure whether it's unsupported or i've got the syntax wrong :)
also, if i define a class in perl 6 that's already been defined, is it possible to replace the original definition? 19:17
PerlJam cspencer: I don't think so (re: operators) 19:19
cspencer perljam: thanks, i'll work around it for the moment 19:20
PerlJam cspencer: wrt replacing a class, my gut says you should be able to do it, but I wouldn't know how :)
moritz_ azawawi: $string.subst() might work for you 19:22
pugs_svn r24798 | particle++ | [S19] flesh out most of option reference 19:42
pugs_svn r24799 | particle++ | [S19] describe unchanged syntax 19:53
pugs_svn r24800 | azawawi++ | [S:H:P6] Fixes hilitep6 binmode STDIN issue for utf8 23:12
r24800 | azawawi++ | [S:H:P6] Updated to latest STD.pm; releasing 0.30 to CPAN
azawawi TimToady: STD.pm finally parses in Padre... Yay! Next step outline mode for comp_unit visualization (methods/subs/tokens...etc). 23:46