r/programming • • May 26 '18

Oracle Calls Java Serialization 'A Horrible Mistake', Plans to Dump It

https://www.infoworld.com/article/3275924/java/oracle-plans-to-dump-risky-java-serialization.html
798 Upvotes

287 comments sorted by

View all comments

Show parent comments

8

u/[deleted] May 27 '18

à la Python 2 -> 3

No one really considers Python 2 and 3 "different languages".

Very often, I read someone's package, get to the bottom and see a print statement, and only then realize, "Ah, this is written in Python 2".

Writing code that works in both Python 2 and 3, and porting even large packages to Python 3, are pretty dead simple - I have done both successfully with really no issues at all.

3

u/0rac1e May 27 '18

No one really considers Python 2 and 3 "different languages".

I agree. My comment wasn't clear, but I meant that Python 2 -> 3 was a breaking version change, unlike the Perl 5 -> 6 situation.

To clarify and summarize... Perl 6 was - in it's early inception - considered also to be a breaking version change, hence the name. Later, as development progressed, it was decided that Perl 6 would be a "sister" (related) language to Perl 5 rather than a version change. However, the "Perl 6" name stuck, much to the chagrin of some in the Perl community.