|
|
|
|
|
by naasking
1637 days ago
|
|
> At the very least with row polymorphism, a function can declare which subset of the type it actually care about instead of taking an unwanted dependency on the whole blob. This is the argument I no longer find convincing. Do you have an example where this is so much clearer than alternate, simpler ways of doing it? For instance, in principle you could easily rewrite a function that works on a record with 3 fields to just accept 3 parameters. The only additional "burden" is that the caller has to pass in those 3 fields, where before they could just pass in the record. |
|