On Wed, Jul 7, 2010 at 2:42 PM, Meikel Brandmeyer wrote:
> Hi,>
> Am 07.07.2010 um 15:47 schrieb Pedro Henriques dos Santos Teixeira:>
>> Are there any design guidelines for choosing between defrecords and
>> defstruct, when one wants a map with type?
>>
>> I started with defrecord, but feels lik
Hi,
Am 07.07.2010 um 15:47 schrieb Pedro Henriques dos Santos Teixeira:
> Are there any design guidelines for choosing between defrecords and
> defstruct, when one wants a map with type?
>
> I started with defrecord, but feels like I should switch to defstruct
> to avoid these complex host integ
On Wed, Jul 7, 2010 at 4:27 AM, Meikel Brandmeyer wrote:
> Hi,
>
> On Jul 7, 3:37 am, Pedro Teixeira wrote:
>
>> user> (use 'clojure.test)
>> user> (testing (defrecord R []) (new R) )
>>
>> [exception: Unable to resolve classname: R]
>
> I think you get caught by the toplevel form. Clojure compil
What about (use 'clojure.test.user) ?
On Jul 6, 6:37 pm, Pedro Teixeira wrote:
> Hi,
>
> The following seems like it was not intended, please let me know if it
> is intended.
>
> user> (use 'clojure.test)
> user> (testing (defrecord R []) (new R) )
>
> [exception: Unable to resolve classname: R]
Hi,
On Jul 7, 3:37 am, Pedro Teixeira wrote:
> user> (use 'clojure.test)
> user> (testing (defrecord R []) (new R) )
>
> [exception: Unable to resolve classname: R]
I think you get caught by the toplevel form. Clojure compiles the
complete testing form before executing it. So the (R.) can't see