Home
Recent
Comments
Search
Login
10
Scala Design Success: Generics
☶
scala
soc.github.io
authored by
soc
1 year ago
|
cached
|
no comments
0
TL;DR:
Scala’s Generics reside in a language design sweet-spot largely due to
Context bounds, which make Scala’s Generics vastly more useful and versatile
The
ident: Type
syntax, which allows simpler and more consistent Generics
The use of
[]
for generic types, which is more regular, easier to understand and provides better readability
Preview