Twitter | Search | |
ericasadun Feb 12
Would it be a good thing or a bad thing to have `compactMap`'s closure default to { $0 }, enabling the application of `compactMap()`?
Reply Retweet Like
dimsumthinking Feb 12
Replying to @ericasadun
I still want if let foo = foo to be shortened to if let foo
Reply Retweet Like
Guilherme Rambo
A shorthand syntax for safely unwrapping optionals as a requirement to run the body of a function would be great. So many of my functions start with lots of guard let foo = foo else { return }
Reply Retweet Like More
tex Feb 13
Good to hear you use guard over if let. So many functions I come across use an if let without anything after so it needlessly indents by one tab. Small complaint, but 3 if let’s in and you want to kill yourself.
Reply Retweet Like
Guilherme Rambo Feb 13
I’m a huge fan of early returns
Reply Retweet Like