Hi Woody, The chance that PSR-12 will adopt a different brace style is extremely low > because the upgrade path from PSR-2 to PSR-12 should be simple and obvious. >
Yes, the thread got a bit derailed with the braces positioning discussion. I opened a pull request with the minimal changes I suggest: https://github.com/php-fig/fig-standards/pull/1167 Hopefully it will be clearer. I would rather work on projects that use PSR-2 (or 12) than whatever any > single individual has deemed "most readable". Agree here. And that's precisely why I was trying to make my code conform to the standard. понедельник, 22 апреля 2019 г., 15:14:25 UTC+3 пользователь Woody Gilk написал: > > On Mon, Apr 22, 2019 at 4:48 AM <alexey...@gmail.com <javascript:>> > wrote: > > > > Hi Ben, > > > >> If people can’t agree on what’s readable, they should be able to agree > on what’s consistent. > > > > > > I don't agree that generally allowing whitespace to separate unrelated > code and then explicitly forbidding this in some language constructs is > consistent. Please prove me wrong. > > No one has to prove anything right or wrong. PSR-2 was not created > by scientific study, it was created based on what the most common style > of PHP was at the time. Since its publication, the number of people > using that style has only grown. > > From my perspective, this argument is a lot of bikeshedding. The > chance that PSR-12 will adopt a different brace style is extremely low > because the upgrade path from PSR-2 to PSR-12 should be simple and > obvious. > > And for the record, I agree with Ben Ramsey: > > > Consistency often leads to readability as you get used to reading the > code. > > I would rather work on projects that use PSR-2 (or 12) than whatever > any single individual has deemed "most readable". > -- > Woody Gilk > https://shadowhand.me > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/c59b6a83-2284-4155-8b86-07a6e0c2ab20%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.