cos-guidelines
cos-guidelines copied to clipboard
Caché ObjectScript contibutors guidelines
Using short-curcuit logical operators ("&&" and "||") instead of regular ("&" and "!")
instead of with getting next index in the end of loop ``` set ind=$order(array("")) for { quit:ind="" /// some code here set ind=$order(array(ind)) } ``` should be ``` set ind=""...
- Use documatic formatting (basically HTML) - All that can be in a signature must be in a signature, eg. `ClassMethod Read(FileName As %String, Length As %Integer(MINLEN=1) = 32656, ByRef...
@ZitRos made good point. If these guidelines are for newcomers then we should explain what does "dotted syntax" means. Or provide some reference to the samples of it. E.g. http://docs.intersystems.com/cache20152/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_cdo_legacy