Bookmarked Avoid using else | freek.dev
Post details
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.

This is a good tip for any language!

Recommended read: Avoid using else - Freek Van der Herten's blog on PHP, Laravel and JavaScript https://freek.dev/2212-avoid-using-else

This post was filed under bookmarks.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.