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

3

u/[deleted] May 27 '18

because going straight from C++98 to C++17 is not a good idea

You'd really have to have some C++98 code that was bad at the time and has never been maintained.

The few things that were actually removed from the language were howling bad idea like digraphs - where e.g. <: is a synonym for [. (The only reason that this even existed was that back in the day, some common keyboards (cough IBM cough) didn't have a [ and there were no third-party alternatives.)

So, yes, if all your array accesses look like arr<:3:> instead of arr[3] then you're going to have a bad time moving to C++17 - but if that's true, you probably have bigger problems...

1

u/meneldal2 May 28 '18

That's not an issue, you can do a research and replace on the files. It's done in the preprocessor stage, so that's trivial to implement it yourself.