Alternative declaration syntax

Agreed. First one is using const for type declaration, and the second… hmm :slight_smile:
But, please, do not get me wrong - I am by no way criticizing Zig syntax nor making any proposals. I just was pondering over various ways of declaring variables/constants -
originally the head post of the topic was just a comment in this topic and I had no intention to make a full-blown discussion about it.

But then @Sze considered that comment to be off topic (and it really was there)
and suggested to make a separate topic in Brainstorming category, I agreed, why not? :slight_smile:

So, my ramblings was not about Zig at all, it was an attempt to brain around various ways of declaring entities in general.

1 Like