loopier / animatron

Animatron for Godot 4.x <
MIT License
16 stars 1 forks source link

`/def` syntax #7

Open loopier opened 1 year ago

loopier commented 1 year ago

How about using this syntax for default arguments:

/def /cmdname x y?0
  /whatever $x $y
totalgee commented 1 year ago

What about "y=0", or is that already used?

On Thu, Aug 31, 2023, 10:59 Roger Pibernat @.***> wrote:

How about using this syntax for default arguments:

/def /cmdname x y?0 /whatever $x $y

— Reply to this email directly, view it on GitHub https://github.com/loopier/animatron/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKXIW5A52FUI4P6HL3WRLXYCRE5ANCNFSM6AAAAAA4GG5NCQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

loopier commented 1 year ago

It's not used, no, and makes sense. Do we want to use named arguments? Or that's making our lives difficult? What would be the syntax in that case, y:1?

I'm shooting crazy ideas, but I'd rather keep things simple for now (although it might be too late for that).