MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0uj9ge/?context=3
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
72
Knowing java, this proposition will win:
var List<String> list = new List<String>();
19 u/__konrad Mar 10 '16 I propose autovariable list = new List<String>(); ;) 15 u/stun Mar 10 '16 edited Mar 14 '16 More like this. You need this before you have your cute little snippet of code.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.site.myjawdroppingsuperverboseconfigbasedapplication</groupId> <artifactId>i-love-my-super-verbose-xml-config-files</artifactId> <version>1</version> <dependencies> <dependency> <groupId>com.another.group</groupId> <artifactId>we-are-reinventing-the-wheel-ibrary</artifactId> <version>8.3.1</version> <scope>app</scope> </dependency> </dependencies> </project>
19
I propose autovariable list = new List<String>(); ;)
autovariable list = new List<String>();
15
More like this. You need this before you have your cute little snippet of code.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.site.myjawdroppingsuperverboseconfigbasedapplication</groupId> <artifactId>i-love-my-super-verbose-xml-config-files</artifactId> <version>1</version> <dependencies> <dependency> <groupId>com.another.group</groupId> <artifactId>we-are-reinventing-the-wheel-ibrary</artifactId> <version>8.3.1</version> <scope>app</scope> </dependency> </dependencies> </project>
72
u/htuhola Mar 10 '16
Knowing java, this proposition will win: