News for hackers. Stuff that matters.
Re:Poll: What's Your Most Disliked Programming Language? by xyzzyz on Saturday March 24, 2012 @11:24AM (#3749581)
What do you mean by type safety? Are all dynamically typed languages type unsafe by your definition?
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:33AM (#3749600)
If the language can tell me when it executes the code that the type is wrong then I consider that type safe. Less usefully type safe than at compile time but safe nonetheless.

If the language treats a string as a number in some cases without an error then that is most definitely not type safe.

Re:Poll: What's Your Most Disliked Programming Language? by roryokane on Saturday March 24, 2012 @11:55AM (#3749647)
The standard term for the feature that allows treating a string like a number is "weakly typed". You like "strongly typed" languages.
Re:Poll: What's Your Most Disliked Programming Language? by ScottBurson on Saturday March 24, 2012 @11:55AM (#3749648)
Lisp is type safe by that definition, so I'm not sure what your problem was with it.
Re:Poll: What's Your Most Disliked Programming Language? by seanmcdirmid on Saturday March 24, 2012 @10:46PM (#3751542)
Dynamically typed is still typed. That the error occurs at run-time means the typing is dynamic. If the error did not occur at all (int was unsafely coerced into a string), then that would be untyped or weakly typed.

Static type safety is desirable, dynamic type safety is almost essential. But they are both type safety.

Re:Poll: What's Your Most Disliked Programming Language? by xyzzyz on Saturday March 24, 2012 @11:52AM (#3749638)
What's the reason why you don't consider (Common) Lisp to be type safe then?
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:58AM (#3749660)
I prefer prefer strong statically typed languages.

Just because php is at one extreme end of the spectrum of my preferences for type safety doesn't mean that other things can't be closer but not quite on my end of the spectrum yet.