4 ms·
huh, Java can just do "void main" now? or is the playground omitting some boilerplate? that was one of my main reason for never touching Java/C#, too much cerem
by 38 3y ago
huh, Java can just do "void main" now? or is the playground omitting some boilerplate? that was one of my main reason for never touching Java/C#, too much ceremony just to write a basic program.
- neonsunset 3y agoC# allowed to write main-less applications for quite some time: https://dotnetfiddle.net/oGnV4m https://dotnetfiddle.net/oGnV4m
- 38 3y agoI wouldn't say two years is "quite some time", but yeah that's cool
- emccue 3y agoIt is a preview feature right now, so the playground is adding --enable-preview. (there is a toggle for that.) java --enable-preview Main.java Things generally exit preview after ~2 releases.