objectscript / cos-guidelines

Caché ObjectScript contibutors guidelines
MIT License
15 stars 15 forks source link

Why statements in all lower-case #4

Closed eduard93 closed 8 years ago

eduard93 commented 8 years ago

Let's make first letter capital

If (expression) {
  Do ##class(Sample).%New(initexpresion)
   For i=1:1:10 {
    Write something,!
  }
 }

look better than

 if (expression) {
  do ##class(Sample).%New(initexpresion)
   for i=1:1:10 {
    write something,!
  }
 }
tsafin commented 8 years ago

Those styles both consistent and ight be recommended equally. But here is my reasoning why I recommend lower-case:

[I hope you will prefer to be familiar to C/C++ developers in general] In either cae those styles are kbotth consistent and igt be considered legal alternatives.

eduard93 commented 8 years ago

Yeah, I agree that the most important part is consistency inside of a project. Some minutiae may differ from the rules suggested, but it must be consistent everywhere.