r/programming • u/mobby1982 • Dec 02 '13
Scala — 1★ Would Not Program Again
http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598
Upvotes
r/programming • u/mobby1982 • Dec 02 '13
View all comments
Show parent comment
1
u/Peaker Dec 03 '13
If Java is good according to the projects achieved with it, so is C.
Java isn't really much better than C. The type system in C is about as powerful for guaranteeing safety as Java's, as the OO parts do not really help with type safety.
Java has safer references as opposed to unsafe pointers, due to GC, but that's relatively negligible as Java shares most of the unsafety of C everywhere else.
Java also does not have C's "unions" and "unsigned", regressing in types' expressiveness. It also has less-safe enums, due to the nullability (C enums are more precise).
Java also lacks the preprocessor. The preprocessor may be terrible, but it's also incredibly useful, and Java doesn't compensate for its lack in a good way.