|
leanpub.com/perl6 | logs at irclog.perlgeek.de/perl6book/today | announcement at perlgeek.de/blog-en/perl-6/2016-book.html Set by moderator on 2 February 2017. |
|||
|
02:49
ilbot3 joined
|
|||
| moderator | leanpub.com/perl6 | logs at irclog.perlgeek.de/perl6book/today | announcement at perlgeek.de/blog-en/perl-6/2016-book.html | ||
|
17:56
DrForr joined
18:11
cale2 joined
|
|||
| cale2 | hey moritz | 18:11 | |
| moritz | hi cale2 | 18:16 | |
| cale2 | on line 21 of chapter 4, you introduce "Libraries to the rescue" | ||
| But DateTime and Date are simply types that are in the langauge | 18:17 | ||
| They're not really modules or libraries are they? | |||
| moritz | they are libraries, just built-in | ||
| cale2 | moritz: One thing that really confuses me is when to use the term library, package, module, class, or type | 18:19 | |
| DateTime is a type and a class. But it's also a module. Library is a synonym for module. | 18:20 | ||
| Modules and Classes are both Packages. | |||
| moritz | I don't think DateTime is a Module | ||
| m: say Class ~ Module | |||
| yes, modules and classes are specializations of packages | 18:21 | ||
| a library is a more informal term for a collection of reusable software components | |||
| cale2 | In Perl6 speak, you'd refer to an informal collection as a package, though, yes? | ||
| moritz | no, a package is a very well-defined thing | 18:22 | |
| basically a namespace | |||
| cale2 | A library is a group of packages then | ||
| I thought a module was a group of packages though | |||
| I know these questions sound dumb, but it's sort of important to understand if a learner has any hope of contributing to the ecosystem | 18:23 | ||
| moritz | not dumb at all; there aren't any good explanations around | ||
| and I'm not inclined to include one in the book, because I don't find that very practical | 18:24 | ||
| and people tend to mix up the terms anyway | |||
| cale2 | moritz: Perhaps a smaller guide should be written. Assuming that the reading knows how to write single file scripts, the guide can focus on writing shareable code that can be uploaded to ecosystem | 18:25 | |
| moritz | cale2: that's one of the ideas I've pondered | 18:26 | |
| cale2 | I've pondered writing a small book on Perl6 and putting it on gitbook | ||
| It would be very opinionated and mostly incorrect I'm sure. But I like the idea of writing things on platforms like gitbook | 18:27 | ||
| Ah, there's already this: examples.perl6.org/categories/modul...ement.html | 18:28 | ||
| moritz | docs.perl6.org/language/modules.ht...ng_Modules also exists | 18:29 | |
|
20:19
FROGGS joined
|
|||