News for hackers. Stuff that matters.
Re:Swift and the Legacy of Functional Programming by banachtarski on Monday November 21, 2016 @03:38PM (#13008973)
You have a ton of these types of statements. Which one do you apply the treatment too? Your approach only allows doing this troubleshooting approach to a single place at a time easily.
Re:Swift and the Legacy of Functional Programming by marcosdumay on Monday November 21, 2016 @04:16PM (#13009287)
How do you debug several places at the same time?

You have a ton of those statements, that's why you organize them in functions, and go debugging high level functions before you go into lower level ones, and then into atomic statements.

Anyway, you'll almost certainly want to do that in an repl. I don't know if swift supports one, if not that would be a real drawback.

Re:Swift and the Legacy of Functional Programming by iampherocity on Tuesday November 22, 2016 @08:07AM (#13013812)
They do, it's really slick how well they have it integrated.