ClojureScript

(defn next [a] (inc a)) triggers infinite loop at REPL

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Should do the same things as Clojure, warn about redef.

Activity

Hide
Jeremy Hughes added a comment -

This is a broader issue related to name shadowing.

ClojureScript:cljs.user> (def next 1)
"Error evaluating:" (def next 1) :as "cljs.core.next = 1;\n"
org.mozilla.javascript.EcmaError: TypeError: Cannot find function call in object 1. (cljs/core.cljs#772)
at cljs/core.cljs:772 (anonymous)
<snip>

Show
Jeremy Hughes added a comment - This is a broader issue related to name shadowing. ClojureScript:cljs.user> (def next 1) "Error evaluating:" (def next 1) :as "cljs.core.next = 1;\n" org.mozilla.javascript.EcmaError: TypeError: Cannot find function call in object 1. (cljs/core.cljs#772) at cljs/core.cljs:772 (anonymous) <snip>

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: