notitg-mirin
notitg-mirin copied to clipboard
Alternative Mod Syntax that's less DSL and easier to call
I think something like this would be really nice to support.
ease(0, 10, outExpo, {invert = 100, bumpy = 100}, {mode = 'end', time = true})
- the signature of this function is actually clear, so error checking will run faster
- no quotes on mod names
- it is easier for others to make functions with this api
- not too much more typing than what's currently there
- it is much more clear to people who are brand-new to lua that
ease
is a function, not some magic syntax - it gives people who are learning lua good examples of what tables are instead of bad examples
I don't think there would be any problem supporting this sort of thing
The first step to accomplishing this sort of thing would be to split the frontend into a separate file that could be swapped out.
I did it 🦺
I didn't do it 🗡️
New plans, we're not really splitting the frontend into two, but there will be a module you can require that has wrappers over the existing functions
- [ ] ease
- [ ] add
- [ ] acc
- [ ] set
- [ ] func
- [ ] perframe
- [ ] funcease
- [ ] definemod
- [ ] alias
- [ ] maybe others? ask me to edit this comment if you have more that you want to add