Skip to content

Conversation

@OskarStark
Copy link

No description provided.

@lcobucci
Copy link
Member

@OskarStark thanks, but we're discussion about REMOVING yoda expressions everywhere: doctrine/coding-standard@e36b367#diff-1d794c8c2cf3bf4d562ddaea8be99bb0R131

@OskarStark
Copy link
Author

Why? 👀

@Majkl578
Copy link
Contributor

You can find some reasoning and other rules in the doctrine/coding-standard#9 - it's still just a proposal for comments, not accepted CS.
@greg0ire wrote an article about uselessness of Yoda conditions: Why using Yoda conditions you should probably not be

@greg0ire
Copy link
Member

Couldn't agree more of course, but some people like whoever that "@Ocramius" guy is do not: https://www.reddit.com/r/PHP/comments/6rl40r/comment/dl6topg
Probably just some random n00b though :P

@OskarStark OskarStark changed the title use yoda compariosn use yoda comparison Sep 22, 2017
@OskarStark
Copy link
Author

Feel free to reopen if you need it :)

@OskarStark OskarStark closed this Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants