Are optional parameters bad practice?

The thing with optional parameters is, they are BAD because they are unintuitive – meaning they do NOT behave the way you would expect it. Here’s why: They break ABI compatibility ! so you can change the default-arguments at one place.

Sizin İçin Seçtik  Is Tron: Legacy worth watching?

Leave a Reply

Your email address will not be published. Required fields are marked *

Are optional parameters bad practice?

The thing with optional parameters is, they are BAD because they are unintuitive – meaning they do NOT behave the way you would expect it. Here’s why: They break ABI compatibility ! so you can change the default-arguments at one place.

Sizin İçin Seçtik  How do you make a case insensitive in Golang?

Leave a Reply

Your email address will not be published. Required fields are marked *