Have you ever wanted to define a default for a type parameter in Scala? Here's how:https://gist.github.com/propensive/8894fd2a58ac93bfa2c3 …
@aloiscochard @tpolecat Sometimes we don't want to have to specify the type parameter, e.g. "extract a String unless I specify otherwise".
-
-
@propensive@tpolecat do you have something really concrete, I mean a RealWorld(c) example? what that function you describe do? -
@aloiscochard@tpolecat Yeah, exactly the example I gave, but extracting a parameter from an HTTP request, or from the command line... - Show replies
New conversation -
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.