MrPicklePinosaur / shrs

The rusty shell toolkit for hackers
https://mrpicklepinosaur.github.io/shrs/
Apache License 2.0
311 stars 26 forks source link

[Feature]: Unify Shell and Context #413

Closed MrPicklePinosaur closed 6 months ago

MrPicklePinosaur commented 7 months ago

What would you like to see added?

the Shell state variable holds non mutable global context whereas Context holds mutable global context. We can easily merge these two by putting the things that need to be mutated behind a RefCell, which some fields in Shell already are. This should reduce the amount of arguments we passing around and reduce noise in function signatures

MrPicklePinosaur commented 6 months ago

closing, refcell spam is not good idea