Skip to content

Conversation

@konradha
Copy link
Owner

No description provided.

std::string loop_var_name = to_lower(x.m_var);
// auto sym = current_scope->resolve_symbol(array);
// if (sym != nullptr) throw SemanticError("Data statement loop variable cannot be have same name as other variable.", x.base.base.loc);
auto start = AST::down_cast<AST::Num_t>(x.m_start);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, we should use full type name instead of auto. I prefer verbosity over ease of typing.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really care about ease of typing, it's much more easy to read I think. But sure, I'll change it once I actually open a PR.

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.

3 participants