Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ide-dev] Fwd: Simplified main methods -- what IDE users should expect?

Hi,

I would prefer generating `void main(String[] args)`:
* I agree that if `public` is not necessary, we should skip it by default as in many cases, people may not want to make their "main" method a public API
* I believe that in a strong-OO language, `static` methods can often become anti-pattern and thus shouldn't be recommended by default
* and I think developers like to know without looking at documentation how to consume the command arguments, and (unlike `public`) that `args` are actually useful in many cases.

Cheers

Back to the top