Replies: 5 comments 1 reply
-
To clarify, you don't usually have to in rad. Variable initialization is simply The You don't need to declare all 3, so if you're only interested in the exit code and stdout, you can just do But, if you're not interested in the exit code and just want where I don't think a |
Beta Was this translation helpful? Give feedback.
-
|
Tangent, but I'm also considering changing shell commands a bit. I implemented a |
Beta Was this translation helpful? Give feedback.
-
|
I mean it makes sense, that's why we have blank assignments, I'm just saying they should be hidden in something like Rad. Like if not equal 0, then return stderr instead, with a text header saying 'err' or something. It's boilerplate I think can be simplified 90% of the time. Try / Catch sounds good too |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I think so. I am not the language designer here, my only thing is on-boarding users with something easy and gradual, and it's jarring to have have placeholders and what not before you need them. So people won't have to look up the standard error until they need it, etc. Feel free to handle it however |
Beta Was this translation helpful? Give feedback.
-
|
I've made some changes here such that blank assignments no longer are necessary. You can instead assign with specifically Can read more here in the guide: https://amterp.github.io/rad/guide/shell-commands/#named-assignment Let me know if you have thoughts! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm pretty happy with your simplified shell syntax, except for having to use blanks during variable init, like:
That makes sense to Go and Lua devs, but not for shells. In GDscript, which is syntactic sugar to make Lua look more like Python, it would be:
I think that makes more sense with your intended audience. What do you think? Have you looked at GDscript before?
Beta Was this translation helpful? Give feedback.
All reactions