Have you ever wanted to define a default for a type parameter in Scala? Here's how:https://gist.github.com/propensive/8894fd2a58ac93bfa2c3 …
-
-
Replying to @propensive
@propensive hmm. this is clever and not obviously unethical ... trying to remember if I have ever wanted to do this.1 reply 0 retweets 1 like -
Replying to @tpolecat
@tpolecat@propensive not obviously ethical either if you ask me ;) I'm curious of the use case?5 replies 0 retweets 1 like -
Replying to @aloiscochard
@aloiscochard@tpolecat@propensive could be useful to do something similar to the way we use NotNothing: https://github.com/scalaz/scalaz/blob/series/7.2.x/core/src/main/scala/scalaz/NotNothing.scala …1 reply 0 retweets 0 likes -
Replying to @puffnfresh
@puffnfresh@tpolecat@propensive I'm not so keen into adding features that support exclusively hack :-p1 reply 0 retweets 0 likes -
Replying to @aloiscochard
@aloiscochard@puffnfresh@tpolecat How is it a hack? It's designed to do that! The motivating use case was the collections library...2 replies 0 retweets 0 likes -
Replying to @propensive
@propensive@puffnfresh@tpolecat more seriously, those kind of feature should be supported natively imo, I know I'm dreaming though ;)2 replies 0 retweets 0 likes
@aloiscochard @puffnfresh @tpolecat I think there are plans for something "cleaner" in the medium/long term. Can't say more than that.
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.