I love it when a programming language rewards you for refactoring. Like you'll be working with a piece of code and nothing feels right, it's all null checks and kludges, and then you factor out the right method and it all just sings.
Dart does this a lot. The syntax tells you when you're doing it right.