<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged &amp;form</title>
<link>https://ask.clojure.org/index.php/tag/%26form</link>
<description></description>
<item>
<title>defn rejects arity with args vector [&amp;form]</title>
<link>https://ask.clojure.org/index.php/14057/defn-rejects-arity-with-args-vector-form</link>
<description>&lt;p&gt;Here's the smallest case, but it seems to happen no matter how many other arities are provided or whether list or vector syntax is used for the arity.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;user=&amp;gt; (clojure-version)
&quot;1.12.0-rc1&quot;
user=&amp;gt; (defn f [&amp;amp;form])
Unexpected error (IndexOutOfBoundsException) macroexpanding defn at (REPL:1:1).
null
user=&amp;gt; *e
#error {
 :cause nil
 :via
 [{:type clojure.lang.Compiler$CompilerException
   :message &quot;Unexpected error macroexpanding defn at (1:1).&quot;
   :data #:clojure.error{:phase :macroexpansion, :line 1, :column 1, :source &quot;NO_SOURCE_PATH&quot;, :symbol defn}
   :at [clojure.lang.Compiler macroexpand1 &quot;Compiler.java&quot; 7551]}
  {:type java.lang.IndexOutOfBoundsException
   :message nil
   :at [clojure.lang.RT subvec &quot;RT.java&quot; 1634]}]
 :trace
 [[clojure.lang.RT subvec &quot;RT.java&quot; 1634]
  [clojure.core$sigs$asig__5505 invoke &quot;core.clj&quot; 235]
  [clojure.core$sigs invokeStatic &quot;core.clj&quot; 259]
  [clojure.core$defn__5514 invokeStatic &quot;core.clj&quot; 317]
  [clojure.core$defn__5514 doInvoke &quot;core.clj&quot; 294]
  [clojure.lang.RestFn applyTo &quot;RestFn.java&quot; 149]
  [clojure.lang.Var applyTo &quot;Var.java&quot; 707]
  [clojure.lang.Compiler macroexpand1 &quot;Compiler.java&quot; 7525]
  [clojure.lang.Compiler macroexpand &quot;Compiler.java&quot; 7598]
  [clojure.lang.Compiler eval &quot;Compiler.java&quot; 7684]
  [clojure.lang.Compiler eval &quot;Compiler.java&quot; 7655]
  [clojure.core$eval invokeStatic &quot;core.clj&quot; 3232]
  [clojure.core$eval invoke &quot;core.clj&quot; 3228]
  [clojure.main$repl$read_eval_print__9240$fn__9243 invoke &quot;main.clj&quot; 437]
  [clojure.main$repl$read_eval_print__9240 invoke &quot;main.clj&quot; 437]
  [clojure.main$repl$fn__9249 invoke &quot;main.clj&quot; 459]
  [clojure.main$repl invokeStatic &quot;main.clj&quot; 459]
  [clojure.main$repl_opt invokeStatic &quot;main.clj&quot; 523]
  [clojure.main$main invokeStatic &quot;main.clj&quot; 668]
  [clojure.main$main doInvoke &quot;main.clj&quot; 617]
  [clojure.lang.RestFn invoke &quot;RestFn.java&quot; 400]
  [clojure.lang.AFn applyToHelper &quot;AFn.java&quot; 152]
  [clojure.lang.RestFn applyTo &quot;RestFn.java&quot; 135]
  [clojure.lang.Var applyTo &quot;Var.java&quot; 707]
  [clojure.main main &quot;main.java&quot; 40]]}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Macros</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14057/defn-rejects-arity-with-args-vector-form</guid>
<pubDate>Mon, 19 Aug 2024 21:05:00 +0000</pubDate>
</item>
</channel>
</rss>