ClojureScript

Record type name and advanced optimization

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.0-3058
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

It is not possible to query type name in advanced compilation.
Code below prints correct record name in other compilation modes, but under advanced compilation it prints constructor source code.

(defrecord FooBar [a])

(def fb (FooBar. 1))

(prn (-> fb))
(prn (-> fb type))
(prn (-> fb type pr-str))

Activity

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: