Clojure JIRAhttp://dev.clojure.org/jira
This file is an XML representation of an issueen-us4.464925-07-2011[NREPL-29] Provide a mechanism for overriding an operationhttp://dev.clojure.org/jira/browse/NREPL-29
tools.nrepl<p>When specifying middleware, it would be much easier for the user to be able to override a default middleware without having to specify a handler.</p>
<p>For example, if there is a default middleware providing the "complete" operation, the user should be able to just specify their preferred completion middleware, without having to specify all middleware as a handler.</p>
<p>One way to do this might be to check metadata for the provided operations of the specified metadata, and ensure that either the default middleware for that operation is removed, or that the specified middleware takes precendence (which may be simpler when a middleware provides multiple operations).</p>NREPL-29Provide a mechanism for overriding an operationEnhancementMajorOpenUnresolvedChas EmerickHugo DuncanSun, 9 Sep 2012 14:11:13 -0500Fri, 18 Apr 2014 10:18:10 -05000.2.0-beta90.2.0-beta1001<p>Agreed.</p>
<p>Just making sure that the order in which additional middlewares are provided is taken as a default stack order will suffice for most use cases. Transforming middlewares (either in full or in part) would need another metadata slot, <tt>:replace</tt> perhaps, though it seems like that would be much more difficult to get right.</p>Global Rank