@tychotithonus@infosec.exchange
What is your preferred conditional comment grammar style? (Assume "X" and "Y" may be of less-trivial length)
What is your preferred conditional comment grammar style? (Assume "X" and "Y" may be of less-trivial length)
@tychotithonus@infosec.exchange @Gustodon@mas.to
Depends. Depends, depends, depends.
If X isn't some horrible complex expression, I put # do Y under the conditional (in the "then" fork).
If X is some complex condition that can be summarized in English (natural language), I still might break up the comment into # if X and # do Y.
And under the else fork, which may be far away, I basically assert # not X, so do Z. (Again, if X is complex.)
@tychotithonus@infosec.exchange Bit of an "I'm special" answer, but whichever needs the explanation more goes first. (Or is more prominent, which is usually first.)
@NegativeK@infosec.exchange I don't mean to skew the results, but this is indeed likely the way ("whichever is more easily absorbed by the human reader, depending on context"). So I guess, in retrospect, the poll should say "all other things being equal"
@NegativeK@infosec.exchange I don't mean to skew the results, but this is indeed likely the way ("whichever is more easily absorbed by the human reader, depending on context"). So I guess, in retrospect, the poll should say "all other things being equal"