[00:13] *** hungrydonkey joined [00:15] *** aborazmeh joined [00:16] *** aborazmeh left [00:16] *** aborazmeh joined [00:21] ¦ doc: b8015f0e45 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6 [00:21] ¦ doc: specify the required quoting contructs [00:21] ¦ doc: review: https://github.com/Raku/doc/commit/b8015f0e45 [00:21] Link: https://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 [03:50] *** sena_kun joined [03:52] *** Altai-man_ left [03:52] *** kst joined [04:52] *** releasable6 left [04:52] *** bisectable6 left [04:52] *** shareable6 left [04:52] *** quotable6 left [04:52] *** notable6 left [04:52] *** greppable6 left [04:52] *** benchable6 left [04:52] *** bloatable6 left [04:52] *** sourceable6 left [04:52] *** reportable6 left [04:52] *** squashable6 left [04:52] *** evalable6 left [04:52] *** tellable6 left [04:52] *** committable6 left [04:52] *** coverable6 left [04:52] *** statisfiable6 left [04:52] *** linkable6 left [04:52] *** nativecallable6 left [04:52] *** unicodable6 left [04:53] *** notable6 joined [04:53] *** quotable6 joined [04:53] *** shareable6 joined [04:53] *** nativecallable6 joined [04:53] *** evalable6 joined [04:53] *** benchable6 joined [04:53] *** squashable6 joined [04:54] *** coverable6 joined [04:54] *** committable6 joined [04:54] *** bisectable6 joined [04:54] *** greppable6 joined [04:54] *** unicodable6 joined [04:55] *** tellable6 joined [04:55] *** reportable6 joined [04:55] *** linkable6 joined [04:55] *** sourceable6 joined [04:55] *** statisfiable6 joined [04:56] *** releasable6 joined [04:56] *** bloatable6 joined [05:04] *** Sgeo_ left [05:11] *** wamba joined [05:12] *** Sgeo joined [05:28] *** ZzZombo_ joined [05:31] *** ZzZombo left [05:31] *** 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 [10:46] *** 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 [11:56] *** aborazmeh left [11:56] *** aborazmeh joined [11:56] *** __jrjsmrtn__ left [12:03] *** Kaiepi left [12:04] *** xelxebar left [12:09] *** Kaiepi joined [12:14] ¦ doc: 950f1c252c | (Tom Browder)++ (committed using GitHub Web editor) | doc/Type/Real.pod6 [12:14] ¦ doc: make a bit clearer where rounding takes place [12:14] ¦ doc: review: https://github.com/Raku/doc/commit/950f1c252c [12:14] Link: https://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 [13:51] 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:53] *** sena_kun left [13:56] 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 [14:05] 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:16] yes, that kinda makes sense [14:27] 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:28] 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:30] 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:31] *** aborazmeh left [14:34] *** aborazmeh joined [14:34] *** aborazmeh left [14:34] *** 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 [15:25] Can I use an object as a Type constraint in my subroutine? If so, how do I use it? [15:26] err, class rather, not object. I'm still very new to OOP. [15:26] Not sure I get the question [15:27] 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] sub foo(SomeType $obj) {...} # like this? [15:27] m: class A {}; sub (A $foo) { say $foo }; [15:27] rakudo-moar 8c995febd: OUTPUT: «WARNINGS for :␤Useless use of anonymous sub, did you forget to provide a name? (line 1)␤» [15:27] m: class A {}; sub a(A $foo) { say $foo }; a(A.new); [15:27] rakudo-moar 8c995febd: OUTPUT: «A.new␤» [15:28] sub foo(--> SomeType) {...} # then, like this maybe [15:28] sub dmenu ( Protocol:D @input, Str $prompt ) --> Protocol { }; Something like this. [15:28] Protocol is my class. [15:28] you can surely do it [15:30] Hmm, maybe I did something wrong then. I'll look into it. [15:31] Ahh, my --> wasn't inside the parentheses. [15:33] *** wamba left [15:36] You can also use sub foo() returns Bar {} [15:51] *** sena_kun joined [15:53] *** Altai-man_ left [16:10] *** aborazmeh joined [16:10] *** aborazmeh left [16:10] *** aborazmeh joined [16:28] *** margeas joined [16:30] 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 [16:44] They work in any type declaration [16:44] Not sure exactly how you mean this [16:46] I guess, does it make sense that an object can be defined or undefined? [16:47] Or is an object by definition defined? [16:47] Or does that nomenclature not even work for objects and classes? [16:48] *** foo222 left [16:49] rypervenche: you saw my GPaRW presentation? [16:50] lizmat: Yes. That was the one I was referring to :) [16:50] then you should know that an object is an instantiation of a class, and a class is a type ? [16:52] 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] m: my $a = 0; my @a = ( ($a += 2), 1 ); @a.say; [16:52] It can make sense to use them there, yes [16:52] rakudo-moar 8c995febd: OUTPUT: «[2 1]␤» [16:53] ok, :U is for types, :D is for objects, :_ is don't care [16:53] Ahhhh [16:53] originally from "Undefined" and "Defined" [16:53] THat makes perfect sense then. [16:59] *** Xliff left [17:03] *** aborazmeh left [17:10] *** markong joined [17:14] *** markoong left [17:14] *** ufobat left [17:31] *** mowcat left [17:41] lizmat: book? (watching the q&a) [17:42] yeah... :-) [17:50] *** Altai-man_ joined [17:53] *** sena_kun left [17:54] *** margeas joined [17:58] *** markong left [18:00] *** markoong joined [18:00] *** margeas left [18:10] *** cpan-raku left [18:10] *** cpan-raku joined [18:10] *** cpan-raku left [18:10] *** cpan-raku joined [18:14] *** domidumont joined [18:16] *** aborazmeh joined [18:16] *** aborazmeh left [18:16] *** 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 [19:44] *** Ven`` joined [19:48] *** cognominal joined [19:50] *** aborazmeh joined [19:50] *** aborazmeh left [19:50] *** aborazmeh joined [19:51] *** cognomin_ left [19:54] *** reach_satori left [19:54] *** reach_satori joined [20:00] m: say (1, 1, * + * ... Inf)[1000000] [20:00] rakudo-moar 8c995febd: OUTPUT: «MoarVM panic: Memory allocation failed; could not allocate 64 bytes␤» [20:07] Note to self: Don't run that command again on my little laptop. [20:40] *** molaf joined [20:44] *** daxim left [20:46] *** lichtkind joined [20:54] *** sno left [20:56] *** sno joined [20:59] *** aborazmeh left [21:02] did it freeze your system? [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 [21:30] Yeah, ate up all my RAM. [21:37] *** rindolf left [21:53] *** chloekek left [22:19] *** tejr joined [22:34] *** mowcat left [22:52] *** sena_kun joined [22:52] *** Ven`` left [22:53] *** Altai-man_ left [23:18] *** Doc_Holliwood left [23:57] *** lucasb left