If I understand correctly, "positive blame" refers to servers and "negative
blame" refers to clients.  I think this means:


(define/contract (add-10 x) (-> number? number?) "oops")
(add-10 7)        ; Call-A
(add-10 "oops")   ; Call-B

`add-10` accepts a number and promises to return a number, but it actually
returns a string.  Therefore:

Call-A:   positive blame on add-10, no negative blame
Call-B:   negative blame on the (add-10 "oops") call, no positive blame.

Do I have this right, or does every exception carry both positive and
negative blame?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKod7jXEdk3G1%2BN%3DDZ5qbjuNdDras_dapDuE%3DFbY4BuWmJg%40mail.gmail.com.

Reply via email to