From 9abc8f20f1fb368054b52b11793618451ba9d629 Mon Sep 17 00:00:00 2001 From: Moritz Lenz Date: Sat, 30 Jun 2012 07:41:40 +0200 Subject: [PATCH] [questions] answer Q2 by pmichaud++ --- questions.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/questions.txt b/questions.txt index 61bc39cd3..409f96846 100644 --- a/questions.txt +++ b/questions.txt @@ -29,5 +29,13 @@ Q2: (pmichaud) What's the expectation of how "useless use of '+' or is it something that &infix:<+> would detect and carp about at runtime? +A2: (moritz) They are generated at compile-time based on a trait + on the proto sub. + Reasons are: + * The user wants a warning per occurence in the source code, + not per call + * performance considerations + See also: http://irclog.perlgeek.de/perl6/2012-02-17#i_5161470 + Pm