uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.63k stars 116 forks source link

uiua run as default subcommand #252

Closed TeddyDD closed 1 year ago

TeddyDD commented 1 year ago

Most interpreters run scripts passed to them as arguments. Uiua cold behave in exact same way. uiua run should be a default subcommand so instead of writing uiua run foo.ua you could just write uiua foo.ua.

kaikalii commented 1 year ago

I'll think about this. Currently I like being able to type uiua and just make it run watch mode. But I see the value in this.

TeddyDD commented 1 year ago

It could still run in watch mode when executed without arguments, not sure if that's too much magic 🤔

kaikalii commented 1 year ago

It could still run in watch mode when executed without arguments, not sure if that's too much magic 🤔

Nope, I think that's fine.