Fork me on GitHub
#clojurescript
<
2018-01-01
>
Vincent Cantin13:01:11

Hi there. Does anyone know if there exist a library for doing code slicing in clojure or clojurescript?

val_waeselynck16:01:22

I doubt it, what would be an example of code slicing in Clojure?

Vincent Cantin17:01:25

well .. I am just asking at the moment. I don't have a clear example.

noisesmith17:01:46

the nice thing about using clojure's immutable data types is the slice for that value can be derived by looking at the thing that returned the value (and repeating this as needed)

Vincent Cantin17:01:13

@U051SS2EU yes, that's exactly the reason I came to clojurescript.

Vincent Cantin17:01:35

I am considering developing an utility lib for doing the program slicing.

noisesmith18:01:50

you could check out tools.reader - you can't get this info in a running program but you can do it programmatically with the source file

Vincent Cantin18:01:21

thank you. I will take a look tomorrow.

Vincent Cantin17:01:25

well .. I am just asking at the moment. I don't have a clear example.