Better HN
topnewbestaskshowjobs
Log inSign up

typesafety

26 karma · joined May 12, 2011 (15y ago) · 11 submissions

Submissions

comment 15y ago · link · parent

I would like them to be fixable, because otherwise Scala is a decent language, but it is too early to say.

comment 15y ago · link · parent

Good one.

comment 15y ago · link · parent

I'm guessing you've never actually proven type safety for a non-trivial language, if any. While there are many ways type safety could be stated for Scala, I'm pretty sure most Scala programmers would like the version of type safety that states "if I never use a type cast, I can never get a class cast exception." If you think that is too strong of a statement, then fine, but I think most people would agree this is a reasonable expectation for Scala.

comment 15y ago · link · parent

I guess I'm not following, because type safety is a property of typed language. Expressive power is orthogonal. There are type systems that are more expressive and less expressive and ideally you design your language so that regardless of where it lies on the spectrum it has type safety. Otherwise, the type system does not really provide you with any real guarantees.

comment 15y ago · link · parent

I don't see any mention of a specific safety problems. Plus, I am given to believe that there are actually numerous papers on the extensions involved in the Haskell type system. Consider http://haskell.org/haskellwiki/Simonpj/Talk:OutsideIn

comment 15y ago · link · parent

I didn't find these bugs, they're just ones that have been accumulating over the years. If all of these were as simple as being "bugs" rather than flaws in the type system why wouldn't they have been fixed by now?

Is there something wrong with trying to encourage them to fix these problems and make Scala all the better for it?

comment 15y ago · link · parent

So I'm curious, can you point to known problems with Haskell or ML that do not involve using the unsafe features? Scala has problems even without resorting to "unsafe" features like casting or native methods.

comment 15y ago · link · parent

That's really a different issue than type safety.

comment 15y ago · link · parent

https://lampsvn.epfl.ch/trac/scala/ticket/963 https://lampsvn.epfl.ch/trac/scala/ticket/2856

among others

comment 15y ago · link · parent

There are numerous holes in the type system. Just browse their bug tracker to see. And several of them are not just "bugs" but deep flaws in the type system.

comment 15y ago · link · parent

I find it incredibly ironic that they have called the company Typesafe when type-safety is something Scala definitely does not have.