Crystal tries to avoid aliases, so the more Crystal thing to do would just not define them at all. If you still want them, this would probably be a good use case for delegate:
Ah right, sorry delegate won’t help here since it’s basically trying to forward the #go method to the return value of go_to. So I’d just either not define the aliases or deal with the multi-line method. Don’t really have any other options I can think of.
Hi, the intention of this post is, this is a discuss, i consider the one-line method define like def meth; another_meth; end is clear enough to place on same line, but the crystal formatter always change it to three lines, i think it’s unnecessary.
If we allow the two forms then people will start making comments like “Hey, you should make this a one-liner” and so on. By not having the option to choose everything is simplified.