|
6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today Set by moderator on 28 July 2015. |
|||
|
01:52
ilbot3 joined
02:20
cgfbee joined
|
|||
| masak | Ven: how about now? | 19:42 | |
| oh well. we can start asynchronously. | 19:54 | ||
| I can see your side of the argument: make `return` *dynamic* so that whenever one is specified in a quasi, the corresponding one in an injection ends up finding *its* innermost surrounding routine to return from | 19:55 | ||
| or maybe "dynamic" is the wrong description here. it's actually completely lexical, once it's been injected. | 19:56 | ||
| "unhygienic" is probably a more apt description | |||
| and that's the problem I have with it -- in 007 (and in Perl 6), `return` is lexical, which means you should be able to assume that a `return` binds to its innermost surrounding routine | 19:57 | ||
| in order of decreasing "naturalness" or Least Surprise -- lexical return, then return-binds-to-quasi (proposed by masak), then unhygienic return (proposed by Ven) | 20:30 | ||
| but I'm not sure that last line is distinguishable from me just saying "this is my preference" :) | |||