| ▲ | tyleo 5 hours ago | |
In the last couple of years I’ve started using named parameters a bunch more across languages. I consider objects like this close to the JS version of a named parameter. I probably would have thrown “name” in myself so it’s one arg for the whole func. I feel like a goal with good code is localizing understanding even if it occasionally duplicates something like a parameter name. | ||