3 ms·
IMHO, his Haskell style is a little weird and not really the typical (or the best). The dailyCost function is a particularly ghastly example of bad layout and v
by ozataman 14y ago
IMHO, his Haskell style is a little weird and not really the typical (or the best). The dailyCost function is a particularly ghastly example of bad layout and visual code organization.
Then there are things like
map (\(x,y) -> x) reservationFixedCosts
instead of
map fst reservationFixedCosts
I'm also not a big fan of extensive use of list comprehensions; I'd prefer using "map" instead wherever I can.
The whole thing could definitely look much cleaner.