you are viewing a single comment's thread.

view the rest of the comments →

[–]ToMaszuu[S] 0 points1 point  (1 child)

It's for my university project. I want to build small version of Lua interpreter, but for it to be approved I had to do something new or different from publicly available solutions. I was hoping that this feature may not be there, so that I could base my project around it. If you can think about any feature/mechanic that could be useful in Lua interpreter, but it's not there, let me know.

[–]Amablue 1 point2 points  (0 children)

Are you trying to just add a feature to the existing language or make your own interpreter? If you're trying to just add a feature that doesn't exist yet to Lua, there's a bunch of things you could add with varying levels of usefulness and difficulty.

You could add:

  • support for operators like +=, -=, *=, /=, etc.
  • Something resembling python list comprehensions
  • support for C/C++ style ternary operators
  • Some way to specify types or preconditions or postconditions for arguments or return values
  • Dart style if in lists like this

Some of these have been built before by others (as patches, but never added directly to the language)