FAQ


Couldn't you just replace every use of an implicit with an explicit?

Best, Oliver
There are things that can't be accomplished in a statically type checked
language like doing a filter on a set and you get a set back, you do a
filter on a list and you get a list back. This does not work in Java8 as in
Scala and in no other staticaly typed language I know of (if list and set
have the same super class). Other than that you are on the safe side with
code readability and compile times when you stick to explicit converters or
wrappers whenever possible.

-- Haddock

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

People

Translate

site design / logo © 2022 Grokbase