Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6book, 2009-10-29

| Channels | #perl6book index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
07:40 colomon joined #perl6book
09:01 pmichaud_ joined #perl6book
09:02 dukeleto joined #perl6book
09:02 jnthn_ joined #perl6book
09:02 dalek joined #perl6book
11:14 jnthn left #perl6book
11:14 jnthn joined #perl6book
12:12 masak joined #perl6book
13:55 colomon joined #perl6book
14:26 lichtkind joined #perl6book
16:06 moritz_ question
16:06 moritz_ do we want to offer exercises?
16:06 masak I've wondered the same.
16:06 jnthn 10 press-ups!
16:06 masak maybe.
16:06 masak those 'variants' I've been considering for Task could be posed as exercises, with answers.
16:27 moritz_ http://nopaste.snit.ch/18497 somehow I epically failed at making that simple
16:33 masak @names.sort({ %games{$^a} <=> %games{$^b} || %sets{$a} <=> %sets{$b}})
16:33 masak could be written
16:33 masak @names.sort({ %sets{$_}).sort({ %games{$_ })
16:34 masak otherwise, I think it looks like a nice script.
16:35 moritz_ but is it simple enough for the first example in the book?
16:35 moritz_ anyway, I like your sort rewrite
16:35 masak it certainly has many of the characteristics we're looking for.
16:35 moritz_ yes
16:35 moritz_ I wrote it with that in mind
16:35 masak arrays, hashes, for loops, if statements...
16:36 masak are you sure you want to do 'open' without 'or die'?
16:36 moritz_ not sure at all
16:36 moritz_ rakudo's open() dies all by itself
16:36 masak ah.
16:36 masak right.
16:37 moritz_ not right, I believe
16:37 masak ah.
16:37 masak then I'd add an 'or die'.
16:38 moritz_ I'd rather have a 'use fatal;'
16:38 jnthn Note if you actually use the filehandle it will expode then.
16:38 jnthn my $fh = open 'lol I don't exist';
16:38 jnthn if $fh { ... } # ok
16:38 moritz_ then the .get dies
16:39 masak then I'd rather do
16:40 masak if open($file) -> $fh { ... }
16:40 moritz_ nooo
16:41 moritz_ I think leaving it as-is is fine
16:41 moritz_ both with current rakudo and spec semantic it dies with a helpful error message
16:42 masak I don't have any strong opinions either way.
16:46 lichtkind joined #perl6book
16:50 mj41 joined #perl6book
17:22 colomon joined #perl6book
17:27 chromatic joined #perl6book
17:55 hugme joined #perl6book
20:12 dalek book: d7fbc55 | moritz++ |  (2 files):
20:12 dalek book: example for chapter 1
20:12 dalek book: Also run pdflatex twice, we'll need that as soon as we have some
20:12 dalek book: back-and-forth reference, and it's already warning
20:12 dalek book: review: http://github.com/perl6/book/commit/d7fbc552897db1b0892557de50e2f9067db433bb
20:17 Util joined #perl6book
20:19 Util moritz_: Bug in nopaste 18497, line 38: s/for @names/for @sorted/;
20:19 moritz_ Util: fixed in the pod
20:19 moritz_ Util: thanks anyway ;-)
20:20 Util yw
22:06 hugme joined #perl6book
22:06 japhb joined #perl6book
22:06 lichtkind joined #perl6book
22:06 carlin joined #perl6book
22:06 TimToady joined #perl6book
22:09 colomon joined #perl6book

| Channels | #perl6book index | Today | | Search | Google Search | Plain-Text | summary