Closed jgaskins closed 1 year ago
Looks like this was unneeded. I don't know what happened to my local repo. 🙃
@jgaskins Thanks for opening this though, I had never seen giving arguments two names like that before though, that's neat :)
It really is. I like the expressiveness it adds to method signatures like def move(from source, to destination)
or macro render(template, to io)
.
This warning appears on the latest Crystal versions:
If the argument is expoosed outside the method as the name the Crystal compiler expects, this warning goes away. I kept the underscore-prefixed name as the internal variable name so it would remain clear it's not used.