ec has quit [Quit: ec]
vraid has quit [Ping timeout: 268 seconds]
monkey_ has joined #racket
Codaraxis_ has joined #racket
Codaraxis_ has quit [Remote host closed the connection]
Codaraxis has quit [Ping timeout: 260 seconds]
winny has quit [Ping timeout: 276 seconds]
winny has joined #racket
winny has quit [Ping timeout: 276 seconds]
winny has joined #racket
monkey_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #racket
apg has joined #racket
tyson2 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 268 seconds]
ur5us has joined #racket
s-liao has quit [Quit: Client closed]
capfredf has joined #racket
shicz has quit [Ping timeout: 260 seconds]
shicz has joined #racket
capfredf has quit [Ping timeout: 268 seconds]
shicz has quit [Ping timeout: 260 seconds]
shicz has joined #racket
shicz has quit [Ping timeout: 260 seconds]
shicz has joined #racket
winny has quit [Remote host closed the connection]
winny has joined #racket
winny_ has joined #racket
winny has quit [Ping timeout: 276 seconds]
Skyfire has quit [Read error: Connection reset by peer]
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #racket
to-hu has joined #racket
gproto23 has joined #racket
shicz has quit [Ping timeout: 268 seconds]
winny_ has quit [Ping timeout: 276 seconds]
to-hu has quit [Remote host closed the connection]
to-hu has joined #racket
shicz has joined #racket
winny_ has joined #racket
rgherdt has joined #racket
skapata has quit [Remote host closed the connection]
s-liao has joined #racket
capfredf has joined #racket
hendursa1 has joined #racket
VIVIT has quit [Ping timeout: 268 seconds]
capfredf has quit [Ping timeout: 268 seconds]
hendursaga has quit [Ping timeout: 276 seconds]
to-hu has quit [Ping timeout: 268 seconds]
pony has quit []
pony has joined #racket
to-hu has joined #racket
vraid has joined #racket
ur5us has quit [Ping timeout: 268 seconds]
s-liao has quit [Ping timeout: 256 seconds]
s-liao has joined #racket
vraid has quit [Ping timeout: 268 seconds]
vraid has joined #racket
s-liao has quit [Quit: Client closed]
s-liao has joined #racket
shicz has quit [Ping timeout: 268 seconds]
shicz has joined #racket
s-liao has quit [Quit: Client closed]
s-liao has joined #racket
tyson2 has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
gproto23 has quit [Remote host closed the connection]
shicz has quit [Ping timeout: 260 seconds]
shicz has joined #racket
s-liao has quit [Quit: Client closed]
s-liao has joined #racket
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #racket
s-liao has quit [Quit: Client closed]
skapata has joined #racket
skapata has quit [Changing host]
skapata has joined #racket
Skyfire has joined #racket
tyson2 has quit [Remote host closed the connection]
ec has joined #racket
tyson2 has joined #racket
Avichi has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
tyson2 has quit [Remote host closed the connection]
FreeFull has joined #racket
Jing has joined #racket
ec has quit [Ping timeout: 276 seconds]
gproto23 has joined #racket
ec has joined #racket
capfredf has joined #racket
sagax has quit [Remote host closed the connection]
sagax has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
<undltd> stupid question: why does this program print 5 to the terminal when run with `racket filename.rkt`?
<undltd> (i.e. why is there some implicit io going on)
<bremner> yes, the last expression (or maybe all expressions) are printed
<bremner> should be all I guess
<undltd> how to suppress this?
<bremner> depends. You can wrap things in (void ), but it's not clear what your real goal is
<bremner> I mean, if you want a program that prints nothing, the empty program is there for you?
<undltd> :)
<undltd> my program reads a csv file, processes it and prints the result to stdout
<undltd> but I get a #t at the end
<undltd> which I don't want
<undltd> I'm confused though - if I want to have only explicit IO...
<undltd> like I don't want there to be any side-effects that are not explicit in my program
<bremner> well, you can change how top level prints things iirc, but it's not very idiomatic.
<bremner> typically you should just clean up the stray expressions in your code
<undltd> I guess expressions that are there for side effects only should produce (void) always
<_________> can you use `racket -f filename.rkt` instead ?
<bremner> undltd: sure, things like define and display return void
<undltd> _________: tried that, seems to suppress all output (my calls to `displayln` too)
<_________> oh, nvm then
<undltd> bremner: and `csv-for-each` seems to deviate from that
<bremner> could be.
<undltd> maybe something to discuss with the author of the library
<bremner> yeah. It's weird that the return value is undefined.
<bremner> for-each, that it claims to mimic, returns void
<undltd> ...though the fact that it returns void is not explicitly documented
<undltd> but kind of hinted by "result (...) is ignored"
<undltd> (anyhow, wrapping the call with void did the trick for me, thanks all!)
Jing has quit [Remote host closed the connection]
<bremner> yes, for-each has a contract -> void?
<bremner> https://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Fmap..rkt%29._for-each%29%29
<bremner> that's explicit, if maybe a bit cryptic if you're not used to racket contracts
<bremner> rudybot: eval (void? (void (void (void))))
<rudybot> bremner: error: with-limit: out of time
<bremner> oops.
<_________> lol
Jing has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
gproto23 has quit [Ping timeout: 268 seconds]
vraid has quit [Ping timeout: 268 seconds]
gproto23 has joined #racket
xgqtd_ has joined #racket
xgqtd has quit [Ping timeout: 260 seconds]
capfredf has joined #racket
xgqtd_ is now known as xgqt
capfredf has quit [Ping timeout: 268 seconds]
gproto23 has quit [Remote host closed the connection]
gproto23 has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
<samth> bremner: that's just a init delay
<samth> rudybot: eval (void)
<rudybot> samth: your racket/base sandbox is ready
<rudybot> samth: Done.
<samth> rudybot: eval (void?(void (void)))
<rudybot> samth: ; Value: #t
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
Avichi has quit [Quit: Client closed]
capfredf has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
ur5us has joined #racket
ec has quit [Ping timeout: 276 seconds]
<undltd> (oops, overlooked the contract on for-each, thanks for pointing out)
ec has joined #racket
<undltd> just a note: the author of csv-reader agreed to change the `csv-for-each` function to return `void`
<undltd> they said the reason was portability among schemes, but now it is not relevant
<evdubs> should i always prefer call-with-output-file* over call-with-output-file ?
<evdubs> just as a way to really make sure the file is closed after leaving the call-with-output-file code
evdubs has quit [Remote host closed the connection]
tyson2 has joined #racket
to-hu has quit [Quit: to-hu]
evdubs has joined #racket
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
raghavgururajan has quit [Ping timeout: 252 seconds]
vraid has joined #racket
ec has quit [Remote host closed the connection]
ec has joined #racket
raghavgururajan has joined #racket
median is now known as med
gproto23 has quit [Quit: Leaving]
ec has quit [Ping timeout: 276 seconds]
ec has joined #racket
capfredf has joined #racket
ec has quit [Ping timeout: 276 seconds]
capfredf has quit [Remote host closed the connection]
ec has joined #racket
Avichi has joined #racket
ec has quit [Ping timeout: 276 seconds]
Avichi has quit [Ping timeout: 256 seconds]
rgherdt has quit [Ping timeout: 268 seconds]
Jing has quit [Remote host closed the connection]
Jing has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 268 seconds]
s-liao has joined #racket
Jing has quit [Remote host closed the connection]
Jing has joined #racket
pull has joined #racket
shicz has quit [Ping timeout: 260 seconds]
shicz has joined #racket
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` has joined #racket
X-Scale` is now known as X-Scale
FreeFull has quit []