core.async

(CLJS) Shorten core.async go block variable names

Details

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

Description

When using core.async go blocks in ClojureScript, code is transformed into asynchronous functions. When an error occurs inside one of these go blocks, the name is printed as part of the stack trace. These names can get very long, for example one recent stack trace I saw was:

day8.mwi_enhancer.steps.load_mwi.handlers.load_previous_steps_state.cljs.core.async.impl.dispatch.run.call.day8$mwi_enhancer$steps$load_mwi$handlers$load_previous_steps_state_$_state_machine__24889__auto____1

This name is so long that it doesn't even fit on the display of a 13" Macbook in the Chrome console, and part of the name and location of the code is wrapped.

Can anything be done about making the name shorter? In this case there is a lot of duplication in the name, but there is probably a good reason why it was done this way.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: