The only reason to use main
function is that the java
command line tool requires the signature, along with some complicated -cp
, -X
, -XX
, and -D
arguments.
My thoughts:
- Aren’t people from Java world who know those complicated arguments of the
java
command line tool also understand the convention ofmain
? Which is more natural to them,def main
orprogram Main
? - Are there other approaches to launch Scala applications for people who don’t use
java
command line tool? Is an average Scala starter expected to understand thejava
command line tool?