squint icon indicating copy to clipboard operation
squint copied to clipboard

with-out-str

Open corasaurus-hex opened this issue 2 years ago • 1 comments

Is this something we want to add? If we do want to add this then we should probably do this before we do pr/prn, right?

corasaurus-hex avatar Aug 17 '22 04:08 corasaurus-hex

prn and pr-str are already there: they use JSON.stringify.

borkdude avatar Aug 17 '22 06:08 borkdude

I consider prn in squint totally broken since it relies in JSON.stringify which ignores a lot of stuff when it's not representable as JSON. I might want to switch to another implementation later which prints EDN-like stuff which can be copy-pasted back into the code. This will be a breaking change. I'll revisit with-out-str after that.

borkdude avatar Dec 16 '23 15:12 borkdude