Re: local 'in' syntax

  • From: Gavin Wraith <gavin@xxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 01 May 2016 12:25:08 +0100

In message <CA+fP_cTpMQ=XfPAJ6RVqEo76g9btnjdPiaNG5fV7Jc1rznEVPw@xxxxxxxxxxxxxx>
          Elias Hogstvedt <eliashogstvedt@xxxxxxxxx> wrote:

As you've probably noticed lua users aren't too keen on modifying the Lua
syntax. I personally like seeing efforts like this because I think it's
interesting but I would never use it myself. Being compatible with Lua
syntactically is something I think is important.

I have been using the local 'in' syntax in RiscLua for over ten years now.
Until recently I had to hack Lua about a bit to make it interwork with RISC OS,
so, as there was no choice but to modify Lua, I had no qualms about trying
out syntactic innovations. Now, thankfully, there are the tools available so
that I can make RiscLua much more like standard Lua. I am still retaining the
local 'in' syntax, however, because I have found it so convenient; not only for
making code less verbose, but because it fits well with a policy of encouraging
the use of local variables wherever possible.

--
Gavin Wraith (gavin@xxxxxxxxxxxxxxx)
Home page: http://www.wra1th.plus.com/

Other related posts: