begin as an afterword #123
TheDoubleH
started this conversation in
BC Best Practices
Replies: 2 comments
-
I'm a bit older than most here, but when I first learned structured programming (learning ALGOL and COBOL), the BEGIN was always indented and on a separate line:
I was surprised to see the opposite in C/AL coding guidelines when I first started with NAV And, in fact, I don't think the C/AL / AL guidelines cascade this into the CASE statement. I don't recall anyone doing this:
Isn't it always:
? |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my point of view, one of the main priorities beside valid code should be the readability, because a user has to maintain the code. Case Statement
case true of
var1:
<command>;
var2:
<command>;
end; If Statement
if <Condition> then
<Command>;
if <Condition> then begin
<Command>;
<Command>;
end;
if
<Condition> or
<Condition> or
<Condition>
then begin
<Command>;
<Command>;
end; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discuss the `begin-as-an-afterword' best practice posted here
Beta Was this translation helpful? Give feedback.
All reactions