🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:13 hungrydonkey joined 00:15 aborazmeh joined 00:16 aborazmeh left, aborazmeh joined
Geth doc: b8015f0e45 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
specify the required quoting contructs
linkable6 Link: docs.raku.org/language/glossary
00:22 hungrydonkey left 00:31 margeas joined 00:34 markong left 00:45 ctilmes1 left 00:49 pecastro left 00:50 markoong joined 00:51 mowcat left 00:54 margeas left 00:58 markoong left 01:32 wildtrees left 01:49 Altai-man_ joined 01:52 sena_kun left 02:08 molaf left 02:21 molaf joined 02:56 imcsk8 left 02:57 Hotbees left 02:58 imcsk8 joined 02:59 Hotbees joined 03:04 benlittle left 03:08 leont left 03:48 cpup joined 03:50 aborazmeh left, sena_kun joined 03:52 Altai-man_ left, kst joined 04:52 releasable6 left, bisectable6 left, shareable6 left, quotable6 left, notable6 left, greppable6 left, benchable6 left, bloatable6 left, sourceable6 left, reportable6 left, squashable6 left, evalable6 left, tellable6 left, committable6 left, coverable6 left, statisfiable6 left, linkable6 left, nativecallable6 left, unicodable6 left 04:53 notable6 joined, quotable6 joined, shareable6 joined, nativecallable6 joined, evalable6 joined, benchable6 joined, squashable6 joined 04:54 coverable6 joined, committable6 joined, bisectable6 joined, greppable6 joined, unicodable6 joined 04:55 tellable6 joined, reportable6 joined, linkable6 joined, sourceable6 joined, statisfiable6 joined 04:56 releasable6 joined, bloatable6 joined 05:04 Sgeo_ left 05:11 wamba joined 05:12 Sgeo joined 05:28 ZzZombo_ joined 05:31 ZzZombo left, ZzZombo_ is now known as ZzZombo 05:50 Altai-man_ joined 05:52 sena_kun left 06:09 Sgeo left 06:11 Sgeo joined 06:55 Doc_Holliwood joined 07:17 aluaces joined 07:24 rindolf joined 07:25 andrzejku joined 07:28 rindolf left 07:30 xinming joined 07:33 xinming_ left 07:46 rindolf joined 07:51 sena_kun joined 07:52 Altai-man_ left 07:53 andrzejku left 07:55 ensamvarg left 08:39 regreg joined 08:46 upupbb-user2 joined 09:36 wamba left 09:47 pecastro joined 09:50 Altai-man_ joined 09:53 sena_kun left 10:23 upupbb-user2 left 10:46 reach_satori left, reach_satori joined 10:48 mowcat joined 10:49 kst` joined 10:50 kst left 10:52 timeless joined 11:07 markoong joined 11:24 ufobat joined 11:47 Kaiepi joined 11:51 sena_kun joined 11:53 Altai-man_ left 11:55 _jrjsmrtn joined 11:56 aborazmeh joined, aborazmeh left, aborazmeh joined, __jrjsmrtn__ left 12:03 Kaiepi left 12:04 xelxebar left 12:09 Kaiepi joined
Geth doc: 950f1c252c | (Tom Browder)++ (committed using GitHub Web editor) | doc/Type/Real.pod6
make a bit clearer where rounding takes place
linkable6 Link: docs.raku.org/type/Real
12:26 andrzejku joined 12:34 wamba joined 12:42 upupbb-user2 joined 12:50 regreg left 12:57 markoong left 12:58 markong joined 13:15 andrzejku left 13:17 regreg joined 13:22 upupbb-user2 left 13:26 leont joined 13:33 m_athias left 13:40 regreg left 13:42 molaf left 13:50 Altai-man_ joined
uzl[m] In Scheme, you can make a distinction between simple data types (booleans, numbers, etc.) and compound data types (vectors, lists, etc.). Does such a distinction make sense in Raku? 13:51
13:53 sena_kun left
moritz you can make such distinctions 13:56
does it make sense? depends on what you want to do with it
14:01 molaf joined 14:05 m_athias joined
uzl[m] I guess I meant it from a conceptual (and/or possible pedagogical) viewpoint: You've these simple and indivisible data types on one hand and these other compound data types created by combining other data types on the other. 14:05
moritz yes, that kinda makes sense 14:16
Altai-man_ uzl[m], imo, this distinction is bad (from pedagogical point of view), because 1)everything is object; 2)it is is not an object, thus native, it is a bit more advanced for total novices to think about. 14:27
I mean, you can say that List is complex and Int is simple, but it'd be classification for classification which kind of hides the idea they are the same kind of thing 14:28
in lisps, as far as I know, some things are atoms (evaluated to themselves), but in raku you can do `1 but False` and boom. 14:30
14:31 aborazmeh left 14:34 aborazmeh joined, aborazmeh left, aborazmeh joined 14:42 Doc_Holliwood left 14:44 foo222 joined 14:58 lucasb joined 14:59 wamba left 15:08 wamba joined 15:11 aborazmeh left 15:22 markong left 15:23 markong joined
rypervenche Can I use an object as a Type constraint in my subroutine? If so, how do I use it? 15:25
err, class rather, not object. I'm still very new to OOP. 15:26
leont Not sure I get the question
rypervenche I'm changing an array of hashes to an array of objects in a script. I'd like to make sure that the return type in a function is a specific object. My wording my be wrong. 15:27
lucasb sub foo(SomeType $obj) {...} # like this?
Altai-man_ m: class A {}; sub (A $foo) { say $foo };
camelia WARNINGS for <tmp>:
Useless use of anonymous sub, did you forget to provide a name? (line 1)
Altai-man_ m: class A {}; sub a(A $foo) { say $foo }; a(A.new);
camelia A.new
lucasb sub foo(--> SomeType) {...} # then, like this maybe 15:28
rypervenche sub dmenu ( Protocol:D @input, Str $prompt ) --> Protocol { }; Something like this.
Protocol is my class.
Altai-man_ you can surely do it
rypervenche Hmm, maybe I did something wrong then. I'll look into it. 15:30
Ahh, my --> wasn't inside the parentheses. 15:31
15:33 wamba left
leont You can also use sub foo() returns Bar {} 15:36
15:51 sena_kun joined 15:53 Altai-man_ left 16:10 aborazmeh joined, aborazmeh left, aborazmeh joined 16:28 margeas joined
rypervenche Got it. :) 16:30
Do :D and :U work with objects as well?
16:32 markoong joined 16:33 markong left 16:35 thundergnat left 16:37 margeas left 16:39 benlittle joined
leont They work in any type declaration 16:44
Not sure exactly how you mean this
rypervenche I guess, does it make sense that an object can be defined or undefined? 16:46
Or is an object by definition defined? 16:47
Or does that nomenclature not even work for objects and classes?
16:48 foo222 left
lizmat rypervenche: you saw my GPaRW presentation? 16:49
rypervenche lizmat: Yes. That was the one I was referring to :) 16:50
lizmat then you should know that an object is an instantiation of a class, and a class is a type ?
rypervenche I understand that. I just didn't know if :D and :U could fit into the equation anywhere, for example when specifying return types. 16:52
Xliff m: my $a = 0; my @a = ( ($a += 2), 1 ); @a.say;
leont It can make sense to use them there, yes
camelia [2 1]
lizmat ok, :U is for types, :D is for objects, :_ is don't care 16:53
rypervenche Ahhhh
lizmat originally from "Undefined" and "Defined"
rypervenche THat makes perfect sense then.
16:59 Xliff left 17:03 aborazmeh left 17:10 markong joined 17:14 markoong left, ufobat left 17:31 mowcat left
El_Che lizmat: book? (watching the q&a) 17:41
lizmat yeah... :-) 17:42
17:50 Altai-man_ joined 17:53 sena_kun left 17:54 margeas joined 17:58 markong left 18:00 markoong joined, margeas left 18:10 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 18:14 domidumont joined 18:16 aborazmeh joined, aborazmeh left, aborazmeh joined 18:32 wamba joined 18:42 aborazmeh left 19:07 sena_kun joined 19:09 Altai-man_ left 19:14 domidumont left 19:23 Doc_Holliwood joined 19:26 mowcat joined 19:32 chloekek joined 19:40 molaf left 19:44 ufobat joined, Ven`` joined 19:48 cognominal joined 19:50 aborazmeh joined, aborazmeh left, aborazmeh joined 19:51 cognomin_ left 19:54 reach_satori left, reach_satori joined
Doc_Holliwood m: say (1, 1, * + * ... Inf)[1000000] 20:00
camelia MoarVM panic: Memory allocation failed; could not allocate 64 bytes
rypervenche Note to self: Don't run that command again on my little laptop. 20:07
20:40 molaf joined 20:44 daxim left 20:46 lichtkind joined 20:54 sno left 20:56 sno joined 20:59 aborazmeh left
Doc_Holliwood did it freeze your system? 21:02
21:03 daxim joined 21:06 Altai-man_ joined 21:08 sena_kun left 21:13 upupbb-user3 joined 21:17 upupbb-user3 left 21:25 finanalyst joined 21:29 wamba left
rypervenche Yeah, ate up all my RAM. 21:30
21:37 rindolf left 21:53 chloekek left 22:19 tejr joined 22:34 mowcat left 22:52 sena_kun joined, Ven`` left 22:53 Altai-man_ left 23:18 Doc_Holliwood left 23:57 lucasb left