Clojure

Reflection

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

Clojure API for reflection that

(1) separates API from engine, so that an ASM-based reflector can be used without having to load classes
(2) provides a REPL interface that is a successor to clojure.contrib.repl-utils/show
(3) returns data, not encapsulated objects

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:biy_oS0Jir36FceJe5cbLA]
Hide
Assembla Importer added a comment -

stu said: Note that the tests depend on #448.

Show
Assembla Importer added a comment - stu said: Note that the tests depend on #448.
Hide
Assembla Importer added a comment -

richhickey said: I created http://dev.clojure.org/display/design/Reflection+API for discussion and notes

Show
Assembla Importer added a comment - richhickey said: I created http://dev.clojure.org/display/design/Reflection+API for discussion and notes
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:ci50PA1ZCr36bDeJe5cbCb]
Hide
Assembla Importer added a comment -

stu said: 0453-reflection-matching-wip.patch is work in progress. See both http://dev.clojure.org/display/design/Reflection+API and http://dev.clojure.org/display/design/Matching for design notes

Show
Assembla Importer added a comment - stu said: 0453-reflection-matching-wip.patch is work in progress. See both http://dev.clojure.org/display/design/Reflection+API and http://dev.clojure.org/display/design/Matching for design notes
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:bcLZTE19mr36vzeJe5cbCb]
Hide
Assembla Importer added a comment -

stu said: The third patch (dated Oct 14) is per conversation with Rich, plus one enhancement:

  • main namespace is clojure.reflect, and aims to be platform-generic.
  • java specific bits are in the same namespace but a different file reflect/java.clj

I believe this organization helps keep things separate for implementers without punishing users, who run on a single platform at a time and want a single namespace.

Show
Assembla Importer added a comment - stu said: The third patch (dated Oct 14) is per conversation with Rich, plus one enhancement:
  • main namespace is clojure.reflect, and aims to be platform-generic.
  • java specific bits are in the same namespace but a different file reflect/java.clj
I believe this organization helps keep things separate for implementers without punishing users, who run on a single platform at a time and want a single namespace.
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#263, #305, #315, #364, #453)

Show
Assembla Importer added a comment - stu said: Updating tickets (#263, #305, #315, #364, #453)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: