You are a stupid programmer, you can't have that
Alexandru Ermicioi
alexandru.ermicioi at gmail.com
Mon Aug 9 17:37:26 UTC 2021
On Monday, 9 August 2021 at 12:14:27 UTC, Dukc wrote:
> I can see no other reasons for disallowing free functions or
> requiring curly braces for every singe `if` or `while`
> statement.
Java is object oriented only language, hence it makes sense to
not have free functions as in C++, and you actually do have free
functions there. They are static methods.
Braces are not required for control statements, but encouraged to
avoid ambiguous then statements.
Best regards,
Alexandru
More information about the Digitalmars-d
mailing list