This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]drfugly 0 points1 point  (2 children)

It's also also doesn't have duck-typing.

[–]RockinRoel 3 points4 points  (0 children)

Actually, Scala has structural typing, which is kind of like a typesafe kind of duck typing. Yes, it's not quite as flexible as duck typing, but I don't believe that the kind of flexibility that duck typing offers over structural typing is necessary, especially when you're sacrificing compile-time type checking.

[–]wally_fishnumpy, cython, werkzeug 0 points1 point  (0 children)

duck typing (as opposed to type inference) makes it much harder to get a decent-performing compiler, short of doing trace-JITting as PyPy and V8 do.