News for hackers. Stuff that matters.
Re:Swift and the Legacy of Functional Programming by ebola1717 on Monday November 21, 2016 @01:43PM (#13007914)
I find it easier to read with the exception of the anonymous variables. In scala, I would write

    val persons = names
        .map { name => Person(name = name) }
        .filter { person => person.isValid }
Re:Swift and the Legacy of Functional Programming by virtualwhys on Monday November 21, 2016 @02:54PM (#13008570)
Dunno, it's fairly obvious what you're working with, being explicit doesn't buy that much (for me at any rate).

    val persons =
      names.map(Person.apply).
      filter(_.isValid)