Problem: If a function accepts multiple parameters of the same type, we may...


Problem: If a function accepts multiple parameters of the same type, we may accidentally pass arguments in the wrong order. Types can’t protect us.

Solution: Accept an object instead.

View original on X