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*

4
  • \$\begingroup\$ What about (()"""), wouldn't that be a no-op? \$\endgroup\$ Commented Nov 21, 2018 at 23:46
  • \$\begingroup\$ @BMO first paren opens a comment, 2nd paren does nothing because it's commented, 3rd paren closes the comment, then you have """) being parsed as code, which is invalid \$\endgroup\$ Commented Nov 22, 2018 at 1:20
  • \$\begingroup\$ Hmm, nested comments are not in the specs. Comments seem to be discouraged anyways. But you oversaw poetic string literals which allow any string, so Goethe says )""" is valid. \$\endgroup\$ Commented Nov 22, 2018 at 17:13
  • \$\begingroup\$ @BMO good point, can be fixed by inserting a newline inbetween ) and """ \$\endgroup\$ Commented Nov 23, 2018 at 18:21