Perl 6 - the future is here, just unevenly distributed

IRC log for #perl11, 2014-07-03

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

All times shown according to UTC.

Time Nick Message
05:29 Will_the_Chill debugging shift-reduct conflicts in RPerl BNF grammar
06:39 ingy joined #perl11
10:12 basiliscos joined #perl11
10:35 Will_the_Chill rurban: all grammar conflicts fixed!  see   https://github.com/wbraswell/rperl/blob/ceba12ecffb54ddc009688e967a54d15f1d1180f/lib/RPerl/Grammar.eyp
10:37 travis-ci [travis-ci] RPerl Commit By Will Braswell. The build passed. http://travis-ci.org/wbraswell/rperl/builds/29045159
15:23 rurban Great. How about annotating sub return types now? int sub add(int x, int y) {} or sub add(int x, int y) -> int {}
15:23 rurban i.e. c style or functional style
15:24 rurban 'foreach my' TYPE VARIABLE_SYMBOL might also be a bit too restrictive. the lexical declaration may already exist
15:25 rurban also with SubroutineArguments:    ARGUMENTS_BEGIN TYPE VARIABLE_SYMBOL (',' 'my' TYPE VARIABLE_SYMBOL)* ARGUMENTS_END. The 'my' should be 'my'? (optional)
15:59 bluescreen joined #perl11
20:13 Will_the_Chill rurban: subroutine return types and argument types are currently given in the form:
20:14 Will_the_Chill my int $foo_routine = sub { (my string $bar_arg, my float $baz_arg ) = @_;  ... };
20:15 Will_the_Chill there may be a nicer way to do this that does not use anonymous subroutines, but I have yet to figure it out
20:15 Will_the_Chill I'm not sure about your claim that we only need one "my" per subroutine arg, I'll have to check that at some point
20:16 Will_the_Chill I'm not worried about being too restrictive (like foreach) for RPerl v1.0, in fact if anything I want to err on the side of being too restrictive rather than less restrictive
20:17 Will_the_Chill IN FACT the "R" in RPerl originally (and still mostly) stands for "Restricted"!  :-D
21:18 bluescreen_ joined #perl11

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