language agnostic - 通常のテキストでコード要素をどのようにタイプセットしますか?

original title: "language agnostic - How do you typeset code elements in normal text?"


Translate

What is the best way to typeset a function with arguments for readibility, brevity, and accuracy? I tend to put empty parentheses after the function name like func(), even if there are actually arguments for the function. I have trouble including the arguments and still feeling like the paragraph is readable.

Any thoughts on best practices for this?



読みやすさ、簡潔さ、正確さのために引数を付けて関数をタイプセットする最良の方法は何ですか? func()のように関数名の後に空の括弧を付ける傾向がありますが、実際にはar ...

これは翻訳後の要約です。完全な翻訳を表示する必要がある場合は、「翻訳」アイコンをクリックしてください。


すべての答え
  • Translate

    I usually take that approach, but if I feel like it's going to cause confusion, I'll use ellipses like: myFunction(...)

    I guess if I were good, I would use those any time I was omitting parameters from a function in text.


  • Translate

    I would simply 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 hold in it.