magic icon indicating copy to clipboard operation
magic copied to clipboard

overly permissive type resolution

Open timsgardner opened this issue 5 years ago • 0 comments

The way type resolution works in standard ClojureCLR is terribly weak and inconvenient, but Magic's seems permissive to the point of perhaps being buggy. In a fresh namespace, the following works:

(do
  (require '[magic.api :as m]) )

(m/faster
  (UQueryBuilder|[VisualElement]|. nil))

(UQueryBuilder is UnityEngine.UIElements.UQueryBuilder<T>, VisualElement is UnityEngine.UIElements.VisualElement, both have been referenced by other namespaces in the codebase I'm working in here)

timsgardner avatar Apr 26 '19 17:04 timsgardner