oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.85k stars 159 forks source link

Define procs in the current scope, not the global one #2077

Closed PossiblyAShrub closed 1 month ago

PossiblyAShrub commented 2 months ago

Experiment for #language-design>Metaprogramming in ysh, sort of on Zulip.

andychu commented 2 months ago

Thanks, I think this makes sense as a language change

How about add a spec test for now?

(We also need to document this somewhere, although it might be OK to work out Hay and all that at the same time)

andychu commented 1 month ago

I'm working in this area now, so I merged

I think it will affect some of the spec tests I'm working on, so I'll take care of that

https://oilshell.zulipchat.com/#narrow/stream/384942-language-design/topic/Hay.2C.20ctx.2C.20eval.20APIs.2C.20value.2EObj.2C.20modules.20are.20all.20related