不同的支具形式背后的推理是什么? [英] Whats the reasoning behind the different brace forms?
本文介绍了不同的支具形式背后的推理是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在阅读 Zend Framework编码标准,其中他们表示类定义后的大括号应该在下一行,一个真正的大括号形式。
I'm reading through the Zend Framework coding standards, where they state that curly brace after a Class definitions should be on the next line, the "one true brace form".
class MyClass
{
function....
}
我通常在大括号在同一行:
I usually have the braces on the same line:
class OtherClass {
function ...
}
将大括号放在下一行的原因是什么?
What's the reason for putting the brace on the next line? Or using any other style, for that matter?
推荐答案
个人偏好确实是唯一真正的原因。
Personal preference is really the only real "reason".
这篇关于不同的支具形式背后的推理是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文