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 Yeah, exactly the example I gave, but extracting a parameter from an HTTP request, or from the command line...
-
-
@propensive@tpolecat there is no good default for a HTTP parameter, `String` don't look like a good default to me, that should be inferred. -
@aloiscochard@tpolecat Really? HTTP parameters are more String than any other type... because (unlike all other types) they *are* strings! - 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.