dynamic typing - What language would allow var x = 5 AND int x = 5 -


i'm looking language allows statements

var x = 5;  

and

int x = 5; 

without having var: int x = 5; languages this?

if looking syntax allows both explicit typing , inferred types, both c# , c++ satisfy requirement.

both infer type literal allowing explicit type declaration, although c++ uses auto keyword instead of var keyword.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -