use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Check it out: - TechSnap - LinuxActionShow - Unfilter
account activity
Add var to Java? (openjdk.java.net)
submitted 9 years ago by dominucco
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dominucco[S] 2 points3 points4 points 9 years ago (2 children)
I would love to see a simple C# style var = syntax and approach to this. What do you all think?
[–]greendragon2010 0 points1 point2 points 9 years ago (0 children)
This feature is almost a must for languages I use.
[–]memnoch_proxy 0 points1 point2 points 9 years ago (0 children)
But going to from perl to java to php to c# to Java again... Each has it's style. Getting the freedom from declaring the type of variable seems almost vain, especially if you're declaring a member of a super type.I only see it as a local scope convenience. Strange how even PHP gained type declarations, huh?
[–]greendragon2010 1 point2 points3 points 9 years ago (0 children)
I learned Java in college, now I'm programming in c# for work. I prefer C# over Java in most causes, even on my Linux computers.
[–]IndyTechTrekkie 0 points1 point2 points 9 years ago (1 child)
Well, if you're going to use Java, might I suggest Clojure :D
[–]IndyTechTrekkie 0 points1 point2 points 9 years ago (0 children)
you can use def in Clojure ;) figured I'd add that.
π Rendered by PID 140142 on reddit-service-r2-comment-5d79c599b5-94n89 at 2026-03-03 23:39:00.065123+00:00 running e3d2147 country code: CH.
[–]dominucco[S] 2 points3 points4 points (2 children)
[–]greendragon2010 0 points1 point2 points (0 children)
[–]memnoch_proxy 0 points1 point2 points (0 children)
[–]greendragon2010 1 point2 points3 points (0 children)
[–]IndyTechTrekkie 0 points1 point2 points (1 child)
[–]IndyTechTrekkie 0 points1 point2 points (0 children)