On Friday, 31 March 2023 at 16:02:35 UTC, Dennis wrote:
On Friday, 31 March 2023 at 15:52:21 UTC, ryuukk_ wrote:
the point i bring is ``__gshared`` is ugly, so we want an ugly language?

Good code shouldn't look ugly, but global mutable variables are bad, so it's appropriate that they look ugly.

You can still put a single `__gshared:` at the top of your module.

I disagree, global mutables are not bad

That the same bad advice as telling people to "embrace OOP and multiple inheritance" and all the Java BS

"just put your variable into a class and make it static, and then have your singleton to access your static variables"


Reply via email to