skapata has quit [Remote host closed the connection]
jojotastic777 has quit [Ping timeout: 245 seconds]
jojotastic777 has joined #racket
shawnw has quit [Ping timeout: 248 seconds]
shawnw has joined #racket
skapata has joined #racket
simon-az has quit [Ping timeout: 250 seconds]
kratacoa has joined #racket
skapata has quit [Remote host closed the connection]
Heavy_Mettle has joined #racket
Heavy_Mettle has quit [Remote host closed the connection]
msiism has joined #racket
<msiism>
Another question about `with-handlers`: In the first examples of seciton 10.1 of the Racket Guide, the handler procedure's parameter is called `exn`. Later examples use just `v`. Is there anything special about the `exn` parameter in the earlier exmaples?
<msiism>
I'm asking that because the syntax highlighting of the `exn` parameter in those earlier examples confuses me.
kratacoa has quit [Ping timeout: 256 seconds]
<bremner>
exn implies that it will probably be passed an exception value
<msiism>
So it is a mere name in that case?
<msiism>
In other words: `exn` and `v` are conceptually no different then?
Origin has quit [Ping timeout: 256 seconds]
Origin has joined #racket
Tuplanolla has joined #racket
<msiism>
Or, more precisely: Is `(with-handlers ([exn:fail:contract:divide-by-zero? (lambda (exn) +inf.0)]) (/ 1 0))` conceptually any different from `(with-handlers ([exn:fail:contract:divide-by-zero? (lambda (v) +inf.0)]) (/ 1 0))`?
<msiism>
I tend to think it isn't.
<samth>
msiism: the name you use for an argument to a function never matters
<msiism>
Okay, thanks. That's what I suspected.
kratacoa has joined #racket
kratacoa has quit [Ping timeout: 258 seconds]
<msiism>
Is there some sort of best practice for implementing Unix-style error messages for command-line tools in Racket?
<msiism>
Last time I tried this, I ended up (ab-)using `raise-user-error`.