Re:Swift: The joy of sequences
by catnaroek on Wednesday June 08, 2016 @07:00PM
(#11866365)
If anything, the problem with the given code snippets is that the code is needlessly cluttered by explicit type annotations for trivial things. Unfolding a lazy sequence is a short and sweet affair in Haskell and even ML (which doesn't enjoy the benefit of piggybacking on built-in lazy evaluation), where you only supply type annotations when inference can't possibly work (e.g., polymorphic recursion, which most code doesn't need).
[ Parent
| on HN ]
There are no comments on this comment yet.