3 ms·
> Nevertheless, functions (with names) differ from 'where' clauses in precisely that: they have a name, and ideally, a function's name might tell you everything
by lmm 8y ago
> Nevertheless, functions (with names) differ from 'where' clauses in precisely that: they have a name, and ideally, a function's name might tell you everything you need to know about it, though in practice, it is hard to fully and unambiguously state a function's contract in its name, especially if it has side effects.
Huh? What's the difference in "naminess" between:
bar x = ...
foo x y = bar (x + y)
and
foo x y = bar (x + y)
where bar x = ...
?
- mannykannot 8y agoI see that you are right; 'where' clauses don't restrict the ways an author can introduce what Landin calls user-coined names.