ztellman/potemkin — pull request #11 by w01fe (2013-06-13 04:41:46+00:00)
Title: Do an extra sanity check before skipping evaluation of record/type

We were running into issues where a namespace didn't load the first time due to errors, and subsequent loads would fail because the class was not mapped in the namespace. This adds a sanity check for this case and always evaluates the form if the class is not mapped in the namespace.

The easiest way to reproduce the issue is to create a namespace with a defrecord+, evaluate it, remove-ns it, and evaluate the namespace again.

```clojure
(ns tmp
(:require potemkin))

(potemkin/defrecord+ Foo [x y])

Foo
```

at the repl:
```clojure
(require 'tmp)
(remove-ns 'tmp)
(require 'tmp)
```