replete-repl / replete-shared

Shared ClojureScript code for Replete
Eclipse Public License 1.0
12 stars 3 forks source link

[Feature request] Toggle verbose mode #41

Open lilactown opened 5 years ago

lilactown commented 5 years ago

NOTE: Wasn’t sure where to post this; I primarily use the iOS Replete app to test out things while I’m on my iPad, but imagine this could be useful on all platforms.

I’m wondering if it is possible to toggle “verbose” mode similar to what planck offers, where it would print the generated JS code alongside the result of a given REPL invocation.

This would help when I’m trying to experiment various approaches to problems and want to know what the generated source would be.

mfikes commented 5 years ago

We could do that. What I always do is (set! *print-fn-bodies* true) and then wrap the code I'd like to see in an anonymous fn and evaluate it:

IMG_0299

lilactown commented 5 years ago

Thanks! I’ll use that tip for now.