A possible new “program” keyword?

Mark "Justin" Waks
1 min readMar 25, 2019

--

The proposal to add top-level definitions (which has been brewing for quite a while, and I’ve mentioned it before) has sparked a lively discussion about how it might support top-level statements as well — basically making scripting a well-defined concept in the language.

That, in turn, has provoked a new proposal, to perhaps add a program keyword as a convenient alternative to having to type out the full definition of your main function. This would replace both the dead Application trait and the moribund App one with something a bit better-defined and more robust.

I’m not going to try to summarize all of the discussion, but I commend both of the above-linked threads for those who are interested in the topic.

--

--

Mark "Justin" Waks
Mark "Justin" Waks

Written by Mark "Justin" Waks

Lifelong programmer and software architect, specializing in online social tools and (nowadays) Scala. Architect of Querki (“leading the small data revolution”).

No responses yet