> On Nov 16, 2018, at 2:25 PM, Alexander Yakushev <unlo...@bytopia.org> wrote:
>
> Could you please give a brief rationale for why metadata-polymorphism is now
> opt-in? I'm wondering what kind of the undesired behavior this is meant to
> prevent.
Doing the metadata check affects the performance of invocations of external
protocol extensions (does not affect perf of direct definitions).
As one of the goals of protocols is to be fast, we decided to make this an
explicit opt-in choice (for now at least). In cases where metadata protocol
extension is useful, the protocol creator can choose to add that at the cost of
a small perf hit.
Significant time was spent analyzing the performance issues and looking at
other options, but in the end this seemed like the best compromise for now.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.