I dont know if this question was already asked (search did not find something) and it sounds like a absolute beginners question but I'm just curious about how others are thinking about this.
Should the procedure comments be located on top of the procedure or inside of the procedure?
Example 1:
Code: Select all
; Insures that given path is returned with the trailing directory #Slash
Procedure.s FixDirSlash(Path.s)
If Right(Path.s, 1) <> #Slash: Path.s = Path.s + #Slash: EndIf
ProcedureReturn Path.s
EndProcedure
Code: Select all
Procedure.s FixDirSlash(Path.s)
; Insures that given path is returned with the trailing directory #Slash
If Right(Path.s, 1) <> #Slash: Path.s = Path.s + #Slash: EndIf
ProcedureReturn Path.s
EndProcedure
So what do you prefer and why?
Best,
Kukulkan