Yii Framework Forum: What Are Braces For? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

What Are Braces For? Rate Topic: -----

#1 User is offline   Heyho 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 30-May 13

Posted 20 September 2013 - 09:30 AM

You know, these things:
{}
.

If you know the answer, please tell the yii developers, because they seem unaware of their existence or meaning.
0

#2 User is offline   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,707
  • Joined: 04-March 10
  • Location:UK

Posted 20 September 2013 - 09:36 AM

How does the Yii development team's choice of code style affect you?

In any case, if you're referring to the omission of braces for single line statements, I tend to do the same. I believe that for development of Yii 2, the team are following a coding "standard" of some sort, so it may with meet your approval.
0

#3 User is offline   egorpromo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 02-December 12

Posted 20 September 2013 - 09:53 AM

My experience says that braces for single line statements is the best way to escape problems in future. I make it in my own "coding standard". And I recomend it to all developers.
0

#4 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,269
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 20 September 2013 - 10:00 AM

View PostKeith, on 20 September 2013 - 09:36 AM, said:

I believe that for development of Yii 2, the team are following a coding "standard" of some sort

I think Yii 2 is actually PSR0-compliant.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users