News for hackers. Stuff that matters.
Re:Swift and the Legacy of Functional Programming by louthy on Monday November 21, 2016 @02:35PM (#13008417)
I find the first example much more intuitive. It declares intent, rather than the mechanics of delivery. And that's where we need to be heading as programmers.
Re:Swift and the Legacy of Functional Programming by RotsiserMho on Monday November 21, 2016 @02:37PM (#13008438)
This. So much. Declaring intent (what) is much more useful than declaring the mechanics (how). I don't typically care about the "how", just the "what". And the more readable that is, the better.
Re:Swift and the Legacy of Functional Programming by yvsong on Monday November 21, 2016 @03:48PM (#13009063)
And the source code comments are the why.