notitg-mirin icon indicating copy to clipboard operation
notitg-mirin copied to clipboard

Alternative Mod Syntax that's less DSL and easier to call

Open XeroOl opened this issue 3 years ago • 3 comments

I think something like this would be really nice to support.

ease(0, 10, outExpo, {invert = 100, bumpy = 100}, {mode = 'end', time = true})
  1. the signature of this function is actually clear, so error checking will run faster
  2. no quotes on mod names
  3. it is easier for others to make functions with this api
  4. not too much more typing than what's currently there
  5. it is much more clear to people who are brand-new to lua that ease is a function, not some magic syntax
  6. 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

XeroOl avatar Jan 08 '22 02:01 XeroOl

The first step to accomplishing this sort of thing would be to split the frontend into a separate file that could be swapped out.

XeroOl avatar May 12 '22 21:05 XeroOl

I did it 🦺

ChocoboGamer avatar Sep 25 '22 04:09 ChocoboGamer

I didn't do it 🗡️

ChocoboGamer avatar Sep 25 '22 04:09 ChocoboGamer

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

XeroOl avatar May 20 '23 21:05 XeroOl

  • [ ] 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

XeroOl avatar May 20 '23 21:05 XeroOl