Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ For a no-op, you can just use 1 or something. It will work on TIO. Also, : is treated as whitespace, so it doesn't take up the whole while block. \$\endgroup\$ Commented Aug 3, 2022 at 21:03
  • \$\begingroup\$ @Steffan I can't use a number in this case because it would get parsed with the 2. Is : actually completely equivalent to whitespace? \$\endgroup\$ Commented Aug 3, 2022 at 21:05
  • \$\begingroup\$ Yes, : is equivalent to whitespace. It's documented in the spec. You can also use one of NTF, but it will be grouped with O \$\endgroup\$ Commented Aug 3, 2022 at 21:06
  • \$\begingroup\$ The spec says that it "can (usually) be considered whitespace", not that it's always the same as whitespace. \$\endgroup\$ Commented Aug 3, 2022 at 21:12
  • 1
    \$\begingroup\$ Actually, you're right. But this code is still invalid. : takes an argument, and it will consume O/x 4 for that argument. And it is implemented in TIO. In this code, it is equivalent to whitespace. It is only not equivalent at the end of a program. \$\endgroup\$ Commented Aug 3, 2022 at 21:14