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 Really? HTTP parameters are more String than any other type... because (unlike all other types) they *are* strings!
-
-
@propensive@tpolecat I try to avoid stringly typed things. Also, if it *is* `String` in my code, the type should be inferred.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@propensive@tpolecat why being explicit? look at spray routing parameters extraction they do it nicely.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@propensive@tpolecat I suppose my problem with that feature, is that it would simply not exists if scala had proper inference algo -
@aloiscochard@tpolecat I think that depends on what "proper" is. ;) I find the prioritisation rules complicated but useful all the time...
End of conversation
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.