|
|
|
|
|
by munificent
267 days ago
|
|
> the culture of not prioritizing correctness in computation. In a language with pervasive use of generic methods, I don't know what actually means. If I write a function like: function add3(x, y, z)
x + y + z
end
Is it correct or not? What does "correct" even mean here? If you call it with values where `+` is defined on them and does what you expect, then my function probably does what you expect too. But if you pass values where `+` does something weird, then `add3()` does something weird too.Is that correct? What expectations should someone have about a function whose behavior is defined in terms of calls to other open-ended generic functions? |
|