Opened 6 years ago

Closed 5 years ago

#324 closed defect (fixed)

allow |\ as escape for | within a |-escaped identifier

Reported by: cowan Owned by: cowan
Priority: major Milestone:
Component: WG1 - Core Keywords:


Allow \| to represent a vertical bar in an identifier enclosed in vertical bars.

Pro: It would be more consistent to allow \ to escape the | so that || acts exactly analogously to "" in strings, where backslashes escape the delimiter. This is simpler, more regular and allows implementation to use the same routine for reading strings and symbols (with the delimiter as parameter).

Con: If | is not allowed anywhere in a |-escaped identifier except at the end, we can find the end just by scanning for |.

Change History (3)

comment:1 Changed 5 years ago by cowan

  • Status changed from new to decided

The WG voted to adopt a proposal in which \| and all the escape sequences valid in strings are valid in identifiers enclosed in vertical bars.

comment:2 Changed 5 years ago by cowan

  • Owner changed from alexshinn to cowan
  • Status changed from decided to writing

comment:3 Changed 5 years ago by cowan

  • Resolution set to fixed
  • Status changed from writing to closed
Note: See TracTickets for help on using tickets.