Why is optional as a parameter bad?

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 I become a Google Developer?

Leave a Reply

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

Why is optional as a parameter bad?

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  Why do we need required in Flutter?

Leave a Reply

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