Dear Language Designers: Please Copy `Where` from Haskell

by kiru_ioon 11/24/2024, 10:33 AMwith 3 comments

by mrkeenon 11/24/2024, 12:45 PM

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.

by yawpitchon 11/24/2024, 10:37 AM

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