Pro tip: Lenses make updating nested immutable objects easier. #Scala
-
-
-
Replying to @SethTisue
@SethTisue ...using a variable is easier, while simultaneously being asked (or even demanded) to keep a straight face.1 reply 0 retweets 0 likes -
-
Replying to @dysmemic
@pelotom@SethTisue I disagree that there is even a syntactic benefit. Quite the contrary.1 reply 0 retweets 0 likes -
-
Replying to @dysmemic
@pelotom@SethTisue with Scala variable: a = b. With lens: a := b Even with contrived case and even with syntax, you lose with a variable.1 reply 0 retweets 0 likes -
Replying to @dibblego
@dibblego@sethtisue That's for the assignment itself, but what about the syntax of lens-ifying your datastructures vs just declaring a var?1 reply 0 retweets 0 likes
@pelotom @SethTisue yes the scala boilerplate sucks balls, especially that an existing crap syntax exists (the cost has been paid).
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.