Closed jerricco closed 7 years ago
I suppose some further reasoning here is that a lot of the skimming I do through code, I let my syntax highlighter and (hopefully) good indentation to tell me where I am in the code more than spotting actual construct names.
I tend to do all that parsing once I know where I am and what I'm doing, so I don't think this will detract too much from the idea that spotting an it
denotes a for
construct. This could also be enforced by linters if someone doesn't want to allow named/implicit (either/either).
Nvm just read this
// Iterator Loop, explicit iterator value
for link := socialLinks {
Link(url=link.url) {
i(class="fa fa-"+link.icon)
link.title // Print `title`
}
}
Too bushwhacked for this.
I like this idea, but sure it wouldn't hurt to add an optional name for your scope item. Wherin:
Just think the option means more idiomatic code for developers to get on board (part of why I've seen people even shy away from python lel).