Hacker News new | ask | show | jobs
by anonymoushn 4680 days ago
You can also get it to print things by returning them or by prepending "=" to them.

  Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
  > return "hi"
  hi
  > print "hi"
  hi
  > ="hi"
  hi
I agree that this is not ideal, though. It's possible to use a loader to make a more expression-oriented Lua, and then make a REPL that uses that.