Settings

Theme

Dear Language Designers: Please Copy `Where` from Haskell

kiru.io

2 points by kiru_io a year ago · 3 comments

Reader

mrkeen a year 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 a year ago

As you appear to be the author, line 3 of the first code example has a “qsort” where a “quickSort” should be.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection