The following looks like a contradiction to me:
(if (if #f #f) #t #f) ;; => #t
(equal? (if #f #f) #t) ;; => #f
Why does Scheme allowed this? And why is it anything other than division by zero?
Maciek Godek schrieb am Freitag, 10. November 2023 um 12:07:22 UTC+1:
R5RS says this: |If the value of an expression is said to be ``unspecified,'' then the expression must evaluate to some object without signalling an error,
I am wondering why it has been defined this way.
I would say the opposite should be right: it must signal an error.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 55:49:51 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,709 |