Ticket #99 (new defect)

Opened 1 year ago

Last modified 1 year ago

Can't use "to" as parameter name

Reported by: lth Assigned to: jeffdyer
Type: defect Priority: major
Milestone: M2 Component: RefImpl
Version: 4 Keywords:
Cc: brendan

Description

The identifier "to" is reserved (it's an operator). This probably has some consequences for backward compatibility, and Jeff says he thinks this is a bug.

>> function f(to) { return 1 }
**ERROR** ParseError: expecting 'identifier' before 'to'
  (near <no filename>:1.1-1.8)

Attachments

Change History

Changed 1 year ago by jeffdyer

  • component changed from Proposals to RefImpl
  • milestone changed from M1 to M2
Note: See TracTickets for help on using tickets.