Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
keithasaurus
6 months ago
|
parent
|
context
|
favorite
| on:
Public static void main(String[] args) is dead
could java please also learn that stand-alone functions are cleaner than static methods? even if it's just syntax sugar...
fhd2
6 months ago
[–]
C++ calls them free functions, and I always found them rather elegant. A common pattern, at least a few years ago, was to use free functions for anything that'd be a method in Java, but doesn't actually require access to anything non-public.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: