If some naming conventions, such as uppercase names, are so unapproved, why do languages ​​allow them at all?

Is there a practical or historical rationale for languages ​​that tolerate the most egregious taboos? The two most obvious examples are uppercase names and lowercase class names, which I often see on issues new to stackoverflow.

There is no style excuse that I know where you can do this, so why are they even allowed to compile? At the moment, my theories

  • It wasn’t taboo when the language was built,
  • This would make some important cases of edges impossible, or
  • This is not a language task to provide a good style.

I can not find anything on this topic (some links below).

There are some conventions, such as the names of the names of the initial underscore variables or the Hungarian notation (the last of which I was personally rejecting in the comments), which are not overwhelmingly accepted, but less divergent.

I ask this as a Java programmer, but I am also interested in answers in other languages.

Some links:

+4
source share
2 answers

. style diFFicult , mindd hAs GReat diFFICULTies actUally , .

, , - , , , .

, FORCED, , , , .

, . , :

var a=b = a = b;
var c<d = c > d;
if ( a=b & c<d ) ...

. a=b , c<d. , , . . , .

+4

, , , , .

, , - Go, . , , .

, Scala, 10 .

, , . , , .

+2

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


All Articles