Clojure-Intro-Course / clojure-intro-class

NOTE: This repository is obsolete. Was: A pilot project to use Clojure for introductory computer science courses at the University of Minnesota - Morris
20 stars 3 forks source link

All names must be defined before they are used (add this wording to the error produced in the example) #102

Open leek5pin opened 8 years ago

leek5pin commented 8 years ago

(defn foo [x] (bar x)) (defn bar [x] (inc x))

(foo 5)

Syntax error: Name bar is undefined. Found in file test.clj on, or before, line 20. intro.core/-main (core.clj line 20)