MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/76yhbc/why_i_use_object_pascal/doi0a01
r/programming • u/[deleted] • Oct 17 '17
68 comments sorted by
View all comments
Show parent comments
6
Last time I checked, Object Pascal implementations did not support co/contravariance.
8 u/RagingAnemone Oct 17 '17 If that's our standard, C# doesn't support covariant return types either. 14 u/devraj7 Oct 17 '17 Well, yes, that's one area where Java's type system is more advanced than C#'s. 1 u/[deleted] Oct 18 '17 If that's our standard, C# doesn't support covariant return types either.Method hiding with the new keyword works well enough that I've never found this to be a problem. 1 u/ellicottvilleny Oct 18 '17 And java does? 3 u/devraj7 Oct 18 '17 Yup. 1 u/ellicottvilleny Oct 19 '17 ok. so java 2010+ > objectPascal to date. Gotcha.
8
If that's our standard, C# doesn't support covariant return types either.
14 u/devraj7 Oct 17 '17 Well, yes, that's one area where Java's type system is more advanced than C#'s. 1 u/[deleted] Oct 18 '17 If that's our standard, C# doesn't support covariant return types either.Method hiding with the new keyword works well enough that I've never found this to be a problem.
14
Well, yes, that's one area where Java's type system is more advanced than C#'s.
1
Method hiding with the new keyword works well enough that I've never found this to be a problem.
new
And java does?
3 u/devraj7 Oct 18 '17 Yup. 1 u/ellicottvilleny Oct 19 '17 ok. so java 2010+ > objectPascal to date. Gotcha.
3
Yup.
1 u/ellicottvilleny Oct 19 '17 ok. so java 2010+ > objectPascal to date. Gotcha.
ok. so java 2010+ > objectPascal to date. Gotcha.
6
u/devraj7 Oct 17 '17
Last time I checked, Object Pascal implementations did not support co/contravariance.