Details
-
Type:
Enhancement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Declined
-
Affects Version/s: Release 1.4
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Right now if I need to use a record defined in another name space, I need to do this:
(ns myproj.test.xyz
(:use [myproj.xyz])
(:import [myproj.xyz MyRecord])
Hope we can remove the need of ":import" clause.
Hi Warren,
Importing a Java class and using a record are two logically distinct ideas, hence two separate steps in your code. Note that using a namespace makes the defrecord constructor fns (e.g.
>MyRecord and map>MyRecord) available without a second step.Please discuss ideas on the mailing list before using JIRA to make suggestions.
Cheers
>MyRecord and map>MyRecord) available without a second step. Please discuss ideas on the mailing list before using JIRA to make suggestions. Cheers