Skip to content

Conversation

@yui-915
Copy link
Contributor

@yui-915 yui-915 commented Nov 29, 2025

This is an extension, aiming to make using the language more convenient, by not having to duplicate the variable name when trying to declare and assign a value to it, example:

auto thing; thing = value;

would become

auto thing = value;

this was attempted in #170 but the author abounded the PR.

about automatic vector initialization syntax, auto list 3 = {1, 2, 3}; seems natural, but it does create a discrepancy with the regular assign binary operation, other options would be:

  • auto list 3 {1, 2, 3};
  • just don't support initialization for vectors

also should we update all the examples/tests to use the new syntax or leave then as-is ?

@yui-915 yui-915 mentioned this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant