… | |
… | |
21 | make a program more readable, despite the lack of named parameters. |
21 | make a program more readable, despite the lack of named parameters. |
22 | Function calls also allow more static type checking than method calls, so |
22 | Function calls also allow more static type checking than method calls, so |
23 | many mistakes are caught at compiletime with this API. |
23 | many mistakes are caught at compiletime with this API. |
24 | |
24 | |
25 | Also, some backends (Perl and EV) are so fast that the method call |
25 | Also, some backends (Perl and EV) are so fast that the method call |
26 | overhead is very noticable (with EV it increases the time five- to |
26 | overhead is very noticeable (with EV it increases the time five- to |
27 | six-fold, with Perl the method call overhead is about a factor of two). |
27 | six-fold, with Perl the method call overhead is about a factor of two). |
28 | |
28 | |
29 | At the moment, there will be no checking (L<AnyEvent::Strict> does not |
29 | At the moment, there will be no checking (L<AnyEvent::Strict> does not |
30 | affect his API), so the L<AnyEvent> API has a definite advantage here |
30 | affect his API), so the L<AnyEvent> API has a definite advantage here |
31 | still. |
31 | still. |