Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm just too used to naming variables things like "list"

Having variables that shadow functions, that are later used somewhere causes rather inscrutable jvm backtraces to appear in Clojure.




If you use the CIDER debugger then this doesn't appear to be a big issue. Try step debugging the following function. I get an IFn related exception right as the call to (list name) is made.

  (defn f [name list]
    #dbg
    (concat list (list name)))
  
  (f 'alice '(bob))




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: