Clojure

Var's .setDynamic does not set :dynamic in metadata

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

((juxt (comp :dynamic meta) #(.isDynamic %)) #'*agent*)

Activity

Brandon Bloom made changes -
Field Original Value New Value
Description ,((juxt (comp :dynamic meta) #(.isDynamic %)) #'*agent*) {code}
,((juxt (comp :dynamic meta) #(.isDynamic %)) #'*agent*)
{code}
Brandon Bloom made changes -
Description {code}
,((juxt (comp :dynamic meta) #(.isDynamic %)) #'*agent*)
{code}
{code}
((juxt (comp :dynamic meta) #(.isDynamic %)) #'*agent*)
{code}
Hide
Timothy Baldridge added a comment -

This is actually an enhancement as no where in the clojure code is provision made for syncing var's metadata and dynamic state. .isDynamic is the authoritative source, and the calling of .setDynamic is configured by the compiler. If you'd like to see this change, please, feel free to bring it up on clojure-dev for a discussion.

Show
Timothy Baldridge added a comment - This is actually an enhancement as no where in the clojure code is provision made for syncing var's metadata and dynamic state. .isDynamic is the authoritative source, and the calling of .setDynamic is configured by the compiler. If you'd like to see this change, please, feel free to bring it up on clojure-dev for a discussion.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: