Ideas & Feedback

Something similar to the `auto` keyword

JJ

justin600

Posted about 2 months ago · 584 views

Hey guys, I was wondering if/when XXML is going to support the `auto` keyword or something similar for automatic type deduction. It's super annoying to have to type out expressions like `HashMapIterator<Integer, String>`

Replies (1)

EE
thatsoulyguyabout 2 months ago

No, this will not happen; XXML's core philosophy is that "The more explicit the syntax, the greater one's conceptual understanding is. The more implicit the syntax, the lesser one's conceptual understanding is." Adding something similar to C++'s `auto` keyword would break this philosophy by introducing implicit code type resolution, therefore decreasing your conceptual understanding in the long run.

Sign in to reply.