Fork me on GitHub
#clojure
<
2019-10-05
>
emccue04:10:01

@nate_clojurians I have a half-solution for that you maybe can write a script over for your own programs

emccue04:10:23

if you make a file with a shebang #!/usr/bin/java -jar and append all the contents of an uberjar, that gives you a single file you can place on your path

Nate Sutton05:10:28

ohhhh super cool

emccue17:10:38

Yeah I found that out just recently for my class

emccue04:10:37

(w/ a chmod +x of course)

schmee11:10:58

is it possible to override print-method in a local scope only?

schmee11:10:37

or do something that has the same effect, to make pr print a certain value in a certain way, but only in a scope and not globally in the application

sogaiu12:10:33

@schmee i'd like to know too -- when faced with a similar situation, i modified an existing definition to change behavior based on a custom dynamic variable. i use binding to force the custom behavior: https://gist.github.com/sogaiu/9a55ab08cb7b43d2be67d5e4ad8a13a4

vlaaad13:10:59

Is it a value you control? You can put :type metadata on it to affect printing

vlaaad13:10:17

And what do you mean by scope? ns? You might want to have a look at blanket for an example: https://github.com/vlaaad/blanket

sogaiu22:10:54

@vlaaad good idea with the :type metadata -- thanks for mentioning that.