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

implement pretty printing for value.Obj #2109

Closed melvinw closed 3 weeks ago

melvinw commented 3 weeks ago

This commit adds a quick implementation of pp value (and by extension =) for objects. It generates pleasing output, but might not be optimal. I figure we can check this in and tweak it as we find cases that yield wonky outputs. What do folks think?

andychu commented 3 weeks ago

OK cool, I played with it a bit, and it seems like it wraps pretty well