but, in this situation i cant write code like this? (let [user-id 1 user_id 2] (log/info user-id user_id))
在2022年7月30日星期六 UTC+8 21:06:48<[email protected]> 写道: > I'm pretty sure what is happening is the Clojure compiler is munging "x-" > into "x_" but since you already have an "x_" you get an exception. > > On Sat, Jul 30, 2022, 5:23 AM vinurs <[email protected]> wrote: > >> hello, >> i have the following code: >> ``` >> (let [x- 1 x_ 2] (fn [] [x- x_])) ; => Throws: Duplicate field name "x_" >> with signature "J" in class file [...] >> ``` >> i tested from clojure 1.0.0 to the latest, all throw the exception >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to [email protected] >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> [email protected] >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/clojure/72a4df10-b0a7-4886-b1aa-79e15f1f9c79n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/clojure/72a4df10-b0a7-4886-b1aa-79e15f1f9c79n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/c1d9b47e-806c-4894-b2ac-e6217ff1d597n%40googlegroups.com.
