Why would you avoid C ++ keywords in Java?

A popular editor uses highlighting to help programmers avoid using C ++ keywords in Java. The following words are displayed using the same colors as the syntax error:

auto delete extern friend inline redeclared register signed sizeof
struct template typedef union unsigned operator

Why is this considered important?

+3
source share
2 answers

To avoid confusion. The largest migration path in the entire industry over the past 15 years has been from C ++ to Java. Thus, it would be prudent to avoid using these words in a new context where they mean nothing more.

+7
source

, ?

0

Source: https://habr.com/ru/post/1738516/


All Articles