[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Generic optimizable operation syntax proposal
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 5 Jun 2022 17:51:25 -0300
> `(exp) is equivalent to exp, but possibly optimized in an
> implementation-specific manner.
If you want to experiment with this, try my ltokenp [1], a token
processor for Lua. It'll probably be easier if the new syntax is
`f(...)`, because you can use f to decide what to do. But you'll have
to work at the token level, not at the syntactic level. See assert.lua
for an example.
[1] https://web.tecgraf.puc-rio.br/~lhf/ftp/lua/#ltokenp