|
|
|
|
|
by octachron
83 days ago
|
|
Not really when reading `iter (printf %"d %d" m) ns`, I am likely to read it in
three steps - `iter`: this is a side-effect on a collection
- `(printf`: ok, this is just printing, I don't care about what is printed, let's skip to the `)`
- ns: ok, this is the collection being printed
Notice that having a lambda or a partial application `_` will only add noise here.> But to a reader it is valuable information whether it's partial or full application. This can be a valuable information in some context, but in a functional language, functions are values. Thus a "partial application" (in term of closure construction) might be better read as a full application because the main type of concern in the current context is a functional type. |
|