Arc Forumnew | comments | leaders | submitlogin
Anarki now permits postfix '!' in symbols
1 point by akkartik 1689 days ago | 4 comments

  arc> a!
  Bad ssyntax: a!

  arc> a!
  Error: _a!: undefined
In the process I've also tightened up ssyntax in general, so that prefix/postfix ':' doesn't go through ssyntax expansion, etc. Some errors will now simply silently fail to transform.

How do people feel about this?

Edit: I did this to reclaim scheme's '!' suffix for destructive operations, in particular for def and mac. A brief prior discussion about this:

2 points by rocketnia 1689 days ago | link

If you support symbols like a! then what about ssyntax like a!.foo?


1 point by akkartik 1689 days ago | link

  arc> foo!.3
  Error: "Bad ssyntax foo!.3"
That doesn't seem too bad, IMO: if your sym uses ssyntax chars you can't use it in ssyntax. There's probably worse corner cases I haven't considered, though :/


2 points by akkartik 1689 days ago | link

Never mind, I rolled all that back and renamed def! and mac! to redef and remac, respectively.


2 points by rocketnia 1688 days ago | link

Thanks for changing it back, but thanks for taking a leap there too. :-p