Blog: 2025-02-22: Difference between revisions

From razwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
* no continue in loops - gotta use goto or function call (function call good)
* no continue in loops - gotta use goto or function call (function call good)
** actually continue is just a kind of goto ... function calls better
** actually continue is just a kind of goto ... function calls better
* lua repl local variables are not accessible after the command ends
** actually sorta lisp like

Revision as of 18:15, 22 February 2025

Lua is quirkier than I realized

  • 1-based indexing
  • iterate over string is kinda tricky ....
  • luarocks doesn't add itself to path
  • no builtin formatter for table
  • no built-in debugger ??
  • repl doesn't have history
  • no socket support in stdlib (no stdlib?)
  • blocking io by default (for a project like socket)
  • no continue in loops - gotta use goto or function call (function call good)
    • actually continue is just a kind of goto ... function calls better
  • lua repl local variables are not accessible after the command ends
    • actually sorta lisp like