asmttpd icon indicating copy to clipboard operation
asmttpd copied to clipboard

Make code commenting consistent

Open triforce opened this issue 8 years ago • 2 comments

Only a very trivial issue however code comments seem a bit inconsistent. Should we standardize on:

mov rax, rbx ; This is a comment

Space after ';' and start with capital letter?

triforce avatar Nov 03 '17 10:11 triforce

Hmmmmmmm, I can't really make up my mind haha. So far I think I prefer it without a leading space a bit more, like: mov rax, rbx ;This is a comment. Probably jut because of habit with other languages:

a = {} #This is a comment.
cout << "blah"; //This is a comment.
System.out.println("blah"); //Another comment.
etc.

That being said, the example in the yasm manual does have the space: label: instruction operands ; comment So let's go with that then.

nemasu avatar Nov 08 '17 03:11 nemasu

Hi, would you be able to update your branch to the latest and make a PR?

nemasu avatar Apr 19 '21 04:04 nemasu