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

Handle class not found exception #39

Closed leek5pin closed 9 years ago

leek5pin commented 9 years ago

;(println (clojure.string.split "/home/stock424/Documents/code/clojure-intro-class/src/intro/may2015.clj" #"/")) ;Error: clojure.string.split ;Found in file /home/stock424/Documents/code/clojure-intro-class/src/intro/may2015.clj on line 26 at character 10. ; intro.core/-main (core.clj line 111)

elenam commented 9 years ago

This is a runtime exception, unlike the error on a function name with a correct namespace.

elenam commented 9 years ago

Actually, it should be a compilation error. We are classifying it wrong.

elenam commented 9 years ago

This is a run-time error because of dynamic class loading.