Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Dear Language Designers: Please Copy `Where` from Haskell | Better HN
Dear Language Designers: Please Copy `Where` from Haskell
(opens in new tab)
(kiru.io)
2 points
kiru_io
1y ago
3 comments
Share
3 comments
default
newest
oldest
mrkeen
1y ago
The only bit I dislike about Haskell's `where` is that it's only in scope for one case of a named function, e.g. in the article only the bottom quicksort had lesser and greater in scope.
yawpitch
1y ago
As you appear to be the author, line 3 of the first code example has a “qsort” where a “quickSort” should be.
kiru_io
OP
1y ago
Thx! Just fixed it.
j
/
k
navigate · click thread line to collapse