»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:04
jroth joined
00:05
p6bannerbot sets mode: +v jroth
00:07
TreyHarris left
00:20
TreyHarris joined,
p6bannerbot sets mode: +v TreyHarris
00:25
Kaiepi left
00:26
sotona joined
00:27
p6bannerbot sets mode: +v sotona
00:32
sotona left
00:41
Kaiepi joined
00:42
p6bannerbot sets mode: +v Kaiepi
|
|||
ingy | timotimo: now p5 tests run in 0.8s instead of 4s | 00:56 | |
I just replaced Test::Builder. No idea what the heck it was doing... | 00:57 | ||
but it didn't work right on super old perls so I just wrote the tap stuff by hand | |||
01:02
graphene left
01:08
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
01:22
dylanwh left
01:29
dylanwh joined
01:30
p6bannerbot sets mode: +v dylanwh
01:43
saki joined,
saki left,
webstrand left
01:44
webstrand joined
01:45
p6bannerbot sets mode: +v webstrand
01:51
dylanwh left,
dylanwh joined
01:52
p6bannerbot sets mode: +v dylanwh
01:54
saki joined,
saki left
02:12
saki joined,
saki left
02:27
ufobat___ joined
02:28
p6bannerbot sets mode: +v ufobat___
02:31
ufobat_ left
02:32
saki joined,
p6bannerbot sets mode: +v saki
02:39
molaf joined
02:40
p6bannerbot sets mode: +v molaf
02:41
[particle] left
02:51
sotona joined,
p6bannerbot sets mode: +v sotona
02:55
sotona left
03:14
MasterDuke left
03:16
stmuk_ left
03:20
molaf left
03:24
stmuk_ joined,
p6bannerbot sets mode: +v stmuk_
03:36
dduncan joined
03:37
p6bannerbot sets mode: +v dduncan
|
|||
dduncan | I’m starting to get into Perl 6 again after several years’ away from paying much close attention. I’m trying to understand the Mix type. While I know its a generalization of Bag to support real-number weights, I’m unclear on some other things. I found docs.perl6.org to not answer my questions. The primary question is whether it supports negative weights (which Set and Bag do not). If it does, then I assume Mix supports | 03:48 | |
generalizations of all the operators applicable to Bag, but in that case I wonder how some of them apply to negative weights. For example, what is the generalized definition of Mix union and intersection? With Bag it is the max/min of the 2 weights, but with Mix does that generalize to the most positive/negative of the 2 weights or the furthest/nearest to zero of the two or something else? While intersection of negatives producing a | |||
number with the greater absolute value may seem non-intuitive, maybe it is the most correct and consistent. Also I would wonder the semantics of membership when negative weights are supported. Thank you. | |||
03:50
[particle] joined
03:51
p6bannerbot sets mode: +v [particle],
saki left
|
|||
dduncan | The Mix definition I saw said the weight is “a non-zero real number” but the various operators didn’t really explain the consequences of this for negative weights. | 03:52 | |
03:56
spycrab0 left
|
|||
dduncan | On the other hand, while having documentation is nice, since Rakudo is relatively mature now, I will simply see what its actual behavior is and go by that for my answers. | 03:57 | |
Maybe its just me, but there doesn’t seem to be any clear way to find the public version control for Rakudo et al by way of perl6.org. When I go to perl6.org/downloads/ the section on installing from source points to rakudo.org/how-to-get-rakudo/ and that points to tarballs with the source, but no repositories. I know its on Github for example but there’s no mention of these on either site that I could easily find. | 04:17 | ||
is in contrast to many open source projects where a Github-or-other-repo url is easy to find. | |||
[Coke] | dduncan: can you add an issue to github.com/perl6/user-experience/issues ? | 04:21 | |
dduncan | ok, I’ll look into that | ||
04:32
molaf joined,
p6bannerbot sets mode: +v molaf
04:41
molaf left
04:44
quester joined,
p6bannerbot sets mode: +v quester
|
|||
dduncan | Okay I turned that into this: github.com/perl6/user-experience/issues/30 | 04:45 | |
04:48
ZzZombo joined,
p6bannerbot sets mode: +v ZzZombo
|
|||
[Coke] | Thanks! | 04:50 | |
04:52
curan joined,
p6bannerbot sets mode: +v curan
05:00
dduncan left
|
|||
lookatme_q | o/ | 05:01 | |
05:15
vrurg left
05:23
saki joined,
saki left
05:25
vrurg joined,
p6bannerbot sets mode: +v vrurg,
saki joined,
saki left
05:29
gfldex left
05:33
wictory[m] left,
EuAndreh[m] left,
CIAvash[m] left,
unclechu[m] left,
AlexDaniel-old[m left,
AlexDaniel` left,
Matthew[m] left,
tyil[m] left
05:34
tyil[m]1 left,
mirlur[m] left,
ilmari_ left,
lance_w[m] left,
MitarashiDango[m left,
Garland_g[m] left
05:35
stmuk joined
05:36
p6bannerbot sets mode: +v stmuk,
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
p6bannerbot sets mode: +v aborazmeh
05:37
p6bannerbot sets mode: +v aborazmeh,
stmuk_ left
05:41
saki joined
05:42
p6bannerbot sets mode: +v saki
05:48
AlexDaniel-old[m joined,
p6bannerbot sets mode: +v AlexDaniel-old[m,
mirlur[m] joined,
p6bannerbot sets mode: +v mirlur[m]
05:49
wictory[m] joined,
p6bannerbot sets mode: +v wictory[m]
05:51
tyil[m]1 joined,
p6bannerbot sets mode: +v tyil[m]1,
tyil[m] joined,
p6bannerbot sets mode: +v tyil[m]
05:52
lance_w[m] joined,
p6bannerbot sets mode: +v lance_w[m],
CIAvash[m] joined,
p6bannerbot sets mode: +v CIAvash[m],
EuAndreh[m] joined,
p6bannerbot sets mode: +v EuAndreh[m],
ilmari_ joined,
p6bannerbot sets mode: +v ilmari_
05:53
Matthew[m] joined,
p6bannerbot sets mode: +v Matthew[m],
unclechu[m] joined,
p6bannerbot sets mode: +v unclechu[m],
vrurg left
05:55
MitarashiDango[m joined,
p6bannerbot sets mode: +v MitarashiDango[m
05:56
Garland_g[m] joined,
p6bannerbot sets mode: +v Garland_g[m]
05:58
AlexDaniel` joined,
p6bannerbot sets mode: +v AlexDaniel`
06:12
stmuk_ joined
06:13
p6bannerbot sets mode: +v stmuk_
06:15
stmuk left
|
|||
quester | releaseable6: status | 06:30 | |
releasable6 | quester, Next release will happen when it's ready. 0 blockers. 480 out of 489 commits logged | ||
quester, Details: gist.github.com/fb1d60461fe48aa631...c4775c1f5d | |||
06:32
quester left
06:34
aborazmeh left
06:35
abraxxa joined,
p6bannerbot sets mode: +v abraxxa
06:36
Kaiepi left,
robertle joined
06:37
p6bannerbot sets mode: +v robertle
|
|||
El_Che | moning p6 | 06:43 | |
06:45
jcarty joined
06:46
p6bannerbot sets mode: +v jcarty
|
|||
lookatme_q | El_Che, morning | 06:49 | |
07:27
saki left
07:28
saki joined,
p6bannerbot sets mode: +v saki
07:35
x[LGWs4x4i]uG2N0 left
07:39
x[LGWs4x4i]uG2N0 joined,
p6bannerbot sets mode: +v x[LGWs4x4i]uG2N0
08:17
rindolf joined,
p6bannerbot sets mode: +v rindolf
08:18
psychoslave joined
08:19
p6bannerbot sets mode: +v psychoslave
08:22
stmuk joined
08:23
p6bannerbot sets mode: +v stmuk
08:25
stmuk_ left
08:27
Ven` joined
08:28
kurahaupo joined,
p6bannerbot sets mode: +v Ven`,
p6bannerbot sets mode: +v kurahaupo
08:29
kurahaupo_ left
08:31
kurahaupo_ joined
08:32
p6bannerbot sets mode: +v kurahaupo_
08:35
x[LGWs4x4i]uG2N0 left,
kurahaupo left,
kurahaupo_ left
08:36
Ven` left,
kurahaupo joined
08:37
p6bannerbot sets mode: +v kurahaupo
08:39
x[LGWs4x4i]uG2N0 joined,
robertle left,
p6bannerbot sets mode: +v x[LGWs4x4i]uG2N0
08:42
irco left
08:44
Ven` joined
08:45
p6bannerbot sets mode: +v Ven`
08:48
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
09:04
zakharyas left
09:05
zakharyas joined
09:06
p6bannerbot sets mode: +v zakharyas
09:09
zakharyas left
09:24
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
09:25
p6bannerbot sets mode: +v avar
09:34
stmuk_ joined,
p6bannerbot sets mode: +v stmuk_
09:35
leastbit joined,
leastbit left,
leastbit joined,
leastbit left,
leastbit joined,
leastbit left
09:36
leastbit joined,
leastbit left,
stmuk left
10:05
stmuk joined
10:06
p6bannerbot sets mode: +v stmuk
10:07
stmuk_ left
10:11
sno joined
10:12
p6bannerbot sets mode: +v sno
10:20
eliasr joined,
p6bannerbot sets mode: +v eliasr
10:26
saki left
10:32
Ven` left
10:33
pmurias joined
10:34
p6bannerbot sets mode: +v pmurias
|
|||
pmurias | m: say 1e+34.Int | 10:34 | |
camelia | 9999999999999999455752309870428160 | ||
pmurias | ^^ this doesn't seem a very desirable result | ||
hmm, or is it? because that number is actually shorter then a pretty one with a lot of 0's | 10:36 | ||
jnthn | It's becasue a literal with e in it is a Num, and so its precision is constrained to that of a floating point number | 10:41 | |
So I suspect that's the closest representable number | |||
m: say 10 ** 34 | 10:42 | ||
camelia | 10000000000000000000000000000000000 | ||
10:43
sena_kun joined
10:44
p6bannerbot sets mode: +v sena_kun
|
|||
pmurias | jnthn: it's the same Num | 10:47 | |
jnthn: the question is that there are multiple possible results that nqp::fromnum_I could give for a given number | |||
s/question/problem/ | 10:48 | ||
jnthn: and which one should we choose | |||
m: say 1e+34.Str | 10:49 | ||
camelia | 1e+34 | ||
AlexDaniel | What's the choice? | ||
10:49
ZzZombo left
|
|||
pmurias | AlexDaniel: all the values that are represented by 1e+34 | 10:50 | |
JavaScript throws an exception and refuses to do the conversion | |||
The number 1e+34 is not a safe integer and thus cannot be converted to a BigInt | 10:51 | ||
10:51
curan left
|
|||
AlexDaniel | if someone is using Nums then the Num itself is likely not accurate anyway, throwing an exception sounds a bit annoying | 10:52 | |
pmurias | in js people use doubles as integers a lot | 10:58 | |
11:01
abraxxa left
11:07
Ven` joined
11:08
p6bannerbot sets mode: +v Ven`
|
|||
pmurias | AlexDaniel: when stringifying numbers we use the shortest representation | 11:09 | |
11:23
abraxxa joined
11:24
p6bannerbot sets mode: +v abraxxa
11:39
pecastro joined
11:40
p6bannerbot sets mode: +v pecastro
11:41
robertle joined
11:42
p6bannerbot sets mode: +v robertle
11:52
abraxxa left
|
|||
buggable | New CPAN upload: Trait-Env-0.3.0.tar.gz by SCIMON modules.perl6.org/dist/Trait::Env:cpan:SCIMON | 11:52 | |
New CPAN upload: Trait-Env-0.3.1.tar.gz by SCIMON modules.perl6.org/dist/Trait::Env:cpan:SCIMON | |||
11:59
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
12:11
abraxxa joined,
p6bannerbot sets mode: +v abraxxa
12:26
ufobat___ is now known as ufobat
12:36
Mochi101 joined,
p6bannerbot sets mode: +v Mochi101,
Osiris1 joined,
p6bannerbot sets mode: +v Osiris1
|
|||
Mochi101 | I have a bit of a problem. | 12:37 | |
Maybe someone can help me with it. | 12:38 | ||
12:38
Osiris1 left
12:39
Mochi101 left
|
|||
MasterDuke | Mochi101: perl 6 related? | 12:43 | |
jast | Mochi101 left five minutes ago | 12:44 | |
not very patient ;) | |||
MasterDuke | oh ha, time flies... | ||
jast | that it does | 12:45 | |
12:45
epony left
12:54
lizmat left
13:02
psychoslave left
13:03
psychoslave joined
13:04
p6bannerbot sets mode: +v psychoslave
13:18
vrurg joined
13:19
p6bannerbot sets mode: +v vrurg
13:30
skids joined
13:31
p6bannerbot sets mode: +v skids
13:41
samebchase left
13:43
psychoslave left,
psychoslave joined
13:44
p6bannerbot sets mode: +v psychoslave
13:47
psychoslave left,
psychoslave joined
13:48
p6bannerbot sets mode: +v psychoslave
13:50
saki joined,
saki left
13:57
Mochi101 joined,
p6bannerbot sets mode: +v Mochi101
|
|||
Mochi101 | good day all | 13:57 | |
13:59
Mochi101 left
|
|||
sena_kun | o/ | 14:01 | |
MasterDuke | .ask Mochi101 do you have a perl 6 question? | ||
yoleaux | MasterDuke: I'll pass your message to Mochi101. | ||
14:02
saki joined,
saki left
14:10
samebchase joined
14:11
p6bannerbot sets mode: +v samebchase
14:14
abraxxa1 joined,
p6bannerbot sets mode: +v abraxxa1
14:15
psychoslave left
14:16
abraxxa left
14:25
saki joined,
saki left
14:27
diakopter joined,
p6bannerbot sets mode: +v diakopter
14:28
psychoslave_ joined
14:29
p6bannerbot sets mode: +v psychoslave_
14:30
spycrab0 joined,
p6bannerbot sets mode: +v spycrab0
14:31
saki joined,
p6bannerbot sets mode: +v saki
14:33
psychoslave_ left
14:34
psychoslave_ joined
|
|||
Ven` | m: grammar A { rule TOP { <section> }; proto regex section { <sym> \= * }; } | 14:35 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Can only use <sym> token in a proto regex at <tmp>:1 ------> 3 <section> }; proto regex section { <sym7⏏5> \= * }; } |
||
Ven` | I'd argue the error message is a bit LTA :P | ||
14:35
p6bannerbot sets mode: +v psychoslave_
|
|||
Ven` | I, for sure, am inside of a proto regex..:) | 14:35 | |
14:39
psychoslave_ left
15:01
HaraldJoerg joined
15:02
p6bannerbot sets mode: +v HaraldJoerg
15:06
ExtraCrispy joined
15:07
p6bannerbot sets mode: +v ExtraCrispy
15:10
telex left
15:15
fake_space_whale joined
15:16
p6bannerbot sets mode: +v fake_space_whale,
uzl joined
15:17
p6bannerbot sets mode: +v uzl
15:18
telex joined,
p6bannerbot sets mode: +v telex
15:19
leastbit joined
15:20
p6bannerbot sets mode: +v leastbit
15:23
leastbit left
|
|||
uzl | Hello all! | 15:24 | |
So I've been working in my first module ever and I'm not sure if I'm using Perl 6's best practices. Hopefully, somebody can take a look at it and provide me with suggestions/advice. | 15:26 | ||
P6 module: gitlab.com/uzluisf/enigma | |||
The module is somewhat of a P6 port of this Python library: bitbucket.org/bgneal/enigma/ | |||
I'm also writing this post (uzluisf.gitlab.io/posts/perl6-oop-...oduction/) and would like some proofreading. | 15:29 | ||
I'll be back later. | |||
15:29
uzl left
15:36
jcarty left,
Ven` left
15:37
MilkmanDan left
15:39
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
15:43
saki left
15:47
AlexDaniel left
15:58
leastbit joined
15:59
p6bannerbot sets mode: +v leastbit,
molaf joined
16:00
p6bannerbot sets mode: +v molaf,
leastbit left
16:09
Ven` joined
16:10
p6bannerbot sets mode: +v Ven`
16:17
Ven` left
16:23
kaare_ joined
16:24
p6bannerbot sets mode: +v kaare_
|
|||
Geth | doc: 5984a29832 | (JJ Merelo)++ | doc/Type/IO/Spec/Win32.pod6 Some reflow and rephrasing related to #2277 |
16:24 | |
doc: 38fcd6c52f | (JJ Merelo)++ | doc/Type/IO/Spec/Unix.pod6 Revises and clarifies examples refs #2277 |
|||
synopsebot | Link: doc.perl6.org/type/IO::Spec::Win32 | ||
Link: doc.perl6.org/type/IO::Spec::Unix | |||
doc: e0917e83ec | (JJ Merelo)++ | 2 files Eliminates comments and adds an example The behavior of join and catpath is very similar, but it's described in the same way it's implemented, so this is more a comment on the implementation than on the documentation itself. Refs #2277 |
|||
16:25
fake_space_whale left
16:28
zakharyas joined
|
|||
MasterDuke | .tell uzl "We’ll build from the most simple category, the assignment category to the most general one, the course category.", there should probably be some sort of punctuation after "assignment category" | 16:28 | |
yoleaux | MasterDuke: I'll pass your message to uzl. | ||
16:28
p6bannerbot sets mode: +v zakharyas
|
|||
MasterDuke | .tell uzl "not zeroth" should be "no zeroth" | 16:30 | |
yoleaux | MasterDuke: I'll pass your message to uzl. | ||
MasterDuke | .tell uzl your `class Assignment {` code example has some weird indentation for the comments | 16:31 | |
yoleaux | MasterDuke: I'll pass your message to uzl. | ||
16:34
MilkmanDan left
16:35
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
MasterDuke | .tell uzl the bullets have a different font size in the Assignment Class paragraph vs the Student Class paragraph | 16:35 | |
yoleaux | MasterDuke: I'll pass your message to uzl. | ||
MasterDuke | .tell uzl "a add-assignment method" should be "an add-assignment method" | 16:36 | |
yoleaux | MasterDuke: I'll pass your message to uzl. | ||
MasterDuke | .tell uzl "but can we can" has an extra 'can', should be "but we can" | 16:37 | |
yoleaux | ... | ||
MasterDuke | huh, haven't seen yoleaux do that before | 16:38 | |
yoleaux: help | |||
El_Che | .tell MasterDuke did you break yoleaux? | 16:39 | |
yoleaux | El_Che: I'll pass your message to MasterDuke. | ||
El_Che | seems to be working | ||
MasterDuke | yeah, not sure what happened | ||
yoleaux | 16:39Z <El_Che> MasterDuke: did you break yoleaux? | ||
El_Che | buffer overflow :) | ||
robertle | perhaps the quotes? | ||
El_Che | .tell MasterDuke "but can we can" has an extra 'can', should be "but we can" | 16:40 | |
yoleaux | El_Che: I'll pass your message to MasterDuke. | ||
El_Che | nope | ||
MasterDuke | . | 16:41 | |
yoleaux | 16:40Z <El_Che> MasterDuke: "but can we can" has an extra 'can', should be "but we can" | ||
16:47
leastbit joined,
leastbit left,
robertle left
16:48
leastbit joined,
p6bannerbot sets mode: +v leastbit
16:49
leastbit left
|
|||
MasterDuke | dpk: is there a limit to the number of messages one can .tell yoleaux? | 16:51 | |
17:02
vrurg left
17:06
Ven` joined
17:07
p6bannerbot sets mode: +v Ven`
|
|||
dpk | well, the server it’s running on has 24 GB of memory ... ;-) | 17:18 | |
Ven` | is class :: { has Typed @.array; } supposed to work? | 17:20 | |
my very small tests seem to indicate that yes, but my program doesn't accept it. | 17:21 | ||
Type check failed in assignment to @!function; expected AST::Fn but got List ($(AST::Fn.new(name =>...) | 17:23 | ||
Not sure what goes wrong and getting a smaller version of the program hides the bug :\ | |||
tyil | Ven`: you can use `has Str @.array` for instance, which requires all elements in the array to be Str | 17:26 | |
Ven` | yeah, that's what I'm doing (`has AST::Fn @.function`) | ||
MasterDuke | Ven`: that looks sort of like what you | 17:27 | |
17:27
rfold joined
|
|||
MasterDuke | 're assigning to it is a List that happens to contain AST::Fns | 17:28 | |
Ven` | well, even Array[AST::Fn].new(...) fails. | ||
17:28
p6bannerbot sets mode: +v rfold
|
|||
MasterDuke | dpk: it doesn't seem to be accepting new .tells from me | 17:28 | |
Ven` | oh, I think I figured it out. | ||
m: class A { has Int @.xs; }; my %vals = xs => (1, 2, 3); A.new(xs => (1, 2, 3)); say "I survived!"; A.new(|%vals); | 17:29 | ||
camelia | I survived! Type check failed in assignment to @!xs; expected Int but got List ($(1, 2, 3)) in block <unit> at <tmp> line 1 |
||
Ven` | sounds like a Rakudo bug | 17:30 | |
*or* I don't get how | works :) | |||
tyil | m: class A { has Int @.xs; }; my %vals = xs => (1, 2, 3); A.new(xs => (1, 2, 3)); say "I survived!"; A.new(:%vals); | 17:33 | |
camelia | I survived! | ||
17:34
lichtkind joined,
sotona joined
|
|||
Ven` | tyil: you're just passing ignored arguments | 17:34 | |
17:34
p6bannerbot sets mode: +v lichtkind
|
|||
tyil | but it doesnt fail :D | 17:35 | |
Ven` | fair enough | ||
17:35
p6bannerbot sets mode: +v sotona
|
|||
dpk | MasterDuke: try sending one to me now? | 17:35 | |
.to MasterDuke test | |||
yoleaux | dpk: I'll pass your message to MasterDuke. | ||
tyil | I think youre looking forthis | ||
m: class A { has Int @.xs; }; my %vals = xs => (1, 2, 3); A.new(xs => (1, 2, 3)); say "I survived!"; A.new(xs => |%vals<xs>) | |||
camelia | I survived! | ||
Ven` | no, I'm not | 17:37 | |
tyil | m: class A { has Int @.xs; }; my %vals = xs => (1, 2, 3); A.new(xs => (1, 2, 3)); say "I survived!"; my $a = A.new(xs => |%vals<xs>); dd $a.xs; | ||
camelia | I survived! Array[Int] @!xs = Array[Int].new(1, 2, 3) |
||
Ven` | at this point the | is not useful. I want something that has dynamic keys | ||
tyil | hmm | ||
17:44
Kaiepi joined
17:45
p6bannerbot sets mode: +v Kaiepi
|
|||
Ven` | yeah it just adds a level of wrapping [] on top, it's completly broken. I have to list the keys | 17:50 | |
MasterDuke | dpk: i got that message, but yoleaux isn't replying saying "i'll pass your message..." when i try to .tell someone else (in a priv message to yoleax) | ||
Ven` | m: class A { has Int @.xs; }; my %vals = xs => (1, 2, 3); say A.new(|%vals).perl; | ||
camelia | Type check failed in assignment to @!xs; expected Int but got List ($(1, 2, 3)) in block <unit> at <tmp> line 1 |
||
Ven` | m: class A { has @.xs; }; my %vals = xs => (1, 2, 3); say A.new(|%vals).perl; | ||
camelia | A.new(xs => [(1, 2, 3),]) | ||
Ven` | note the double wrapping... | ||
MasterDuke | m: class A { has Int @.xs; }; my %vals = xs => 1, 2, 3; dd A.new(xs => (1, 2, 3)).xs; dd A.new(|%vals).xs; | 17:52 | |
camelia | Array[Int] @!xs = Array[Int].new(1, 2, 3) Array[Int] @!xs = Array[Int].new(1) |
||
Ven` | ah, it's probably because in my grammar I have <foo>+ and so $<foo>>>.made is actually itemized for some reason | 17:53 | |
MasterDuke | m: class A { has Int @.xs; }; my %vals := xs => (1, 2, 3); dd A.new(xs => (1, 2, 3)).xs; dd A.new(|%vals).xs; | ||
camelia | Array[Int] @!xs = Array[Int].new(1, 2, 3) Array[Int] @!xs = Array[Int].new(1, 2, 3) |
||
17:53
kerframil joined,
p6bannerbot sets mode: +v kerframil
|
|||
Ven` | jjkkjkjkjkjkjkjkkjkjkjkjkkj;set ft=perl | 17:57 | |
wooooops | |||
>> | |||
well, I added a `%foo{$_} := %foo{$_} for <key1 key2 xs>` to fix that bug. Thanks MasterDuke | 18:06 | ||
18:12
vrurg joined
18:13
p6bannerbot sets mode: +v vrurg
18:26
Ven` left
18:30
sauvin left
18:48
pmurias left
18:49
pmurias joined,
p6bannerbot sets mode: +v pmurias
19:01
epony joined,
p6bannerbot sets mode: +v epony
19:02
webstrand left,
webstrand joined
19:03
p6bannerbot sets mode: +v webstrand
19:05
vrurg left
19:24
molaf left
19:25
molaf joined
19:26
p6bannerbot sets mode: +v molaf
19:32
AlexDaniel joined,
AlexDaniel left,
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
19:33
p6bannerbot sets mode: +v AlexDaniel
20:01
[Sno] joined,
p6bannerbot sets mode: +v [Sno]
20:02
sno left
|
|||
masak | Ven`: you use the hjlk keys too much in vim. ;) | 20:08 | |
20:15
ufobat left
20:16
webstrand left
20:17
webstrand joined
20:18
p6bannerbot sets mode: +v webstrand
20:38
pdurbin joined
20:39
p6bannerbot sets mode: +v pdurbin
|
|||
tejr | masak: and have a lot of trouble picking a line | 20:40 | |
20:42
zakharyas left
20:43
lichtkind left
20:52
lizmat joined
20:53
p6bannerbot sets mode: +v lizmat
20:54
lichtkind joined
20:55
p6bannerbot sets mode: +v lichtkind
20:59
tejr left
21:02
MasterDuke left,
skids left
21:15
molaf left
|
|||
lichtkind | is there a way to breakup class into several files? | 21:19 | |
timotimo | you can use roles for that purpose | 21:24 | |
jnthn | Short answer: no. Long answer: if the class can be decomposed into various roles, put those in files and compose them into the class. Technically you could have a chain of files using each other and doing `augment`...but don't. | ||
21:24
TreyHarris left
|
|||
jnthn | If a class is so incohesive that there's not value in having it all in the same place, it may also be a sign of poor design. | 21:25 | |
21:26
leastbit joined
21:27
p6bannerbot sets mode: +v leastbit
|
|||
lichtkind | jnthn thanks and extra thanks for looking into my ticked | 21:27 | |
jnthn, normally i would be of same opinion but its purpose of this module to give you all the base you need to deal with matrices so its gets very big, any attemt to outsoure some functionality so far failed due lack of acess to private attributes | 21:29 | ||
timotimo, yes i have to look more into roles | 21:30 | ||
timotimo, roles have access to private attributes of the class they mixed in? | |||
timotimo | that is correct | ||
lichtkind | thanks that would work than | 21:31 | |
great | |||
21:37
leastbit left,
TreyHarris joined,
p6bannerbot sets mode: +v TreyHarris
21:41
stmuk_ joined
21:42
p6bannerbot sets mode: +v stmuk_
21:44
stmuk left
21:46
ExtraCrispy left
21:48
stmuk joined
21:49
HaraldJoerg left,
p6bannerbot sets mode: +v stmuk
21:50
spycrab0 left,
stmuk_ left
22:01
stmuk_ joined
22:02
p6bannerbot sets mode: +v stmuk_,
vrurg joined
22:03
donaldh joined,
p6bannerbot sets mode: +v vrurg
22:04
stmuk left,
p6bannerbot sets mode: +v donaldh
22:06
avar left,
pdurbin left
22:07
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
22:08
p6bannerbot sets mode: +v avar
22:10
stmuk joined,
cjkinni left
22:11
p6bannerbot sets mode: +v stmuk,
cjkinni joined
22:12
p6bannerbot sets mode: +v cjkinni,
stmuk_ left,
pmurias left
|
|||
buggable | New CPAN upload: Sparrowdo-VSTS-YAML-Cordova-0.0.9.tar.gz by MELEZHIK modules.perl6.org/dist/Sparrowdo::V...n:MELEZHIK | 22:12 | |
22:14
cjkinni left,
cjkinni joined
22:15
p6bannerbot sets mode: +v cjkinni
22:18
donaldh left
22:28
rfold left
22:34
stmuk_ joined
22:35
p6bannerbot sets mode: +v stmuk_
22:37
lichtkind left,
stmuk left
22:44
sotona left
22:47
AlexDaniel left
22:58
stmuk joined
22:59
p6bannerbot sets mode: +v stmuk
23:00
Herby_ joined
23:01
stmuk_ left,
p6bannerbot sets mode: +v Herby_
|
|||
Herby_ | \o | 23:01 | |
23:03
stmuk_ joined
23:04
p6bannerbot sets mode: +v stmuk_
|
|||
benjikun | o/ | 23:04 | |
23:05
stmuk left
23:07
Kaiepi left
23:08
Kaiepi joined,
p6bannerbot sets mode: +v Kaiepi
23:09
avar left,
sena_kun left
23:13
Herby_ left
23:14
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
23:15
p6bannerbot sets mode: +v avar
|
|||
lizmat | And another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2018/08/27/...kilfenora/ | 23:21 | |
23:23
Grauwolf_ joined,
p6bannerbot sets mode: +v Grauwolf_,
Grauwolf left,
broquaint left,
dpk left
23:24
dogbert11 joined,
MilkmanDan left
23:25
jkramer joined,
nebuchadnezzar left,
p6bannerbot sets mode: +v dogbert11,
broquaint joined,
dpk joined,
nebuchadnezzar joined,
p6bannerbot sets mode: +v jkramer
23:26
p6bannerbot sets mode: +v broquaint,
p6bannerbot sets mode: +v dpk,
p6bannerbot sets mode: +v nebuchadnezzar,
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
23:27
cgfbee left,
dogbert17 left
23:30
cgfbee joined,
p6bannerbot sets mode: +v cgfbee
23:36
kerframil left,
kerframil joined,
p6bannerbot sets mode: +v kerframil
23:38
pecastro left
23:40
gregf_ left
23:41
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
23:42
MilkmanDan left
23:44
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
23:52
Rawriful joined
23:53
p6bannerbot sets mode: +v Rawriful
23:55
sotona joined
23:56
p6bannerbot sets mode: +v sotona
|