Clojure

Identify Clojure namespace and function name in a compiled function's toString()

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test

Description

For debugging purposes, it would be useful to have Clojure-oriented toString() for functions.

novate.core.processing.async/locate-destination(async.clj:231)

instead of:

novate.core.processing.async$locate_destination@2690d691

This would remove the frustration of mentally de-mangling the function name from the Java class name.

This will have a relatively insignificant change to the generated code: An implementation of the toString() method. This will add a few dozen bytes to the size of a compiled Clojure function (for the additional bytecodes, and the constant string).

  1. CLJ-1278-2.patch
    11/Oct/13 6:26 PM
    5 kB
    Howard Lewis Ship
  2. CLJ-1528--function-tostring.patch
    10/Oct/13 8:39 PM
    6 kB
    Howard Lewis Ship

Activity

People

Vote (9)
Watch (1)

Dates

  • Created:
    Updated: