- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Why <: and not <=: ?
Sat, 2011-07-02, 12:14
If I understand typeclass with an upper boundery well then:
A <: B
means
A is a subtype of B or B itself (so B is inclusive)
Wouldn't
A<=: B
be more intuitive (I think the mathematical notation is : ∇t ⊆ τ. t →
t where t is A and τ is B (hopefully the unicode characters are
encoded well otherwise there is some mojibake in this post))
Donna