-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)Implemented in base-4.20 (GHC 9.10)
Description
Currently Prelude
exports foldl
(which is an anti-pattern most of the time, especially for lists), but does not export foldl'
. This is silly and harmful, especially for newcomers, who easily fall into the trap and get space leaks even in the simplest programs.
foldl'
is a better default choice than foldl
, and Prelude
should not discriminate the former in favor of the latter.
nomeata, Kleidukos, googleson78, hasufell, chshersh and 45 more
Metadata
Metadata
Assignees
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)Implemented in base-4.20 (GHC 9.10)