weavejester / hashp

A better "prn" for debugging
MIT License
436 stars 23 forks source link

Babashka support #21

Open borkdude opened 1 year ago

borkdude commented 1 year ago

I'm currently working on better reader tag support in babashka. In the next release tags in data_readers.clj(c) will be automatically picked up, whereas before you had to set them manually by manipulating *data-readers*.

I tested that new feature using this library: https://twitter.com/borkdude/status/1621594481605615618

The output for babashka in this lib currently isn't great yet (it prints an implementation namespace of bb), but I think we could make it just output the namespace and line info:

user=> #p [1 2 3]
#p[script:12] [1 2 3]

Requesting a stacktrace at the point of execution isn't well supported in SCI / bb yet (this may come in the future, but that's going to take a while), but there's other ways of getting the above simplified output.

If there's any interest, I can look into improving this output.

borkdude commented 1 year ago

The data_reader.clj(c) support has been released now.