PMunch / nim-playground-frontend

The front-end for https://play.nim-lang.org
45 stars 16 forks source link

[feature request]accept any string as compile options #22

Open ringabout opened 3 years ago

ringabout commented 3 years ago

accept any string from as compile options like goldbot does

https://godbolt.org

image

timotheecour commented 3 years ago

I agree, the simplest would be showing a string like nim c -r $file which users could edit as they want, instead of having a complex UI with drop down boxes etc that's guaranteed to not stay in sync or be incomplete. This would allow users to pass arbitrary flags, eg nim js -r $file, nim r --threads -d:foobar $file arg1 arg2 etc

I'm assuming it’s properly sandboxed, which it should be because users can just call shell from within nim program anyways.