How do you type code elements in plain text?

What is the best way to type a function with arguments for readability, brevity, and accuracy? I tend to put empty parentheses after a function name of type func() , even if there are arguments for the function. I have problems with the arguments and still feel like the paragraph is read.

Any thoughts on best practices for this?

+6
language-agnostic format
source share
2 answers

Usually I take this approach, but if it seems to me that this will cause confusion, I will use ellipses such as: myFunction(...)

I think if I were good, I would use them at any time when I skipped parameters from a function in the text.

+3
source share

I would just be a little more careful with the name of my variables and parameters, most people will then be able to guess much more accurately what type of data you want to store in it.

+1
source share

All Articles