1

Sometimes, in software logs, it might be useful to add specifics (like an identifier) to an item, like:

object[5] found

What is (more) correct?

object[5] found
object [5] found

=> space or no space?

For your information: it is not possible to replace the rectangular brackets by round ones.

Dominique
  • 149

1 Answers1

1

I would have a space. As this is software, otherwise it would look like a zero-th indexed member of an array called object.

John Go-Soco
  • 2,266
  • Although my question is meant for logfiles (not the source code itself), you have a valid argument here: those files might be read by people, having notions of programming, and indeed might be confused the way you describe it. – Dominique Mar 18 '24 at 10:07