mavoweb / treecle

WIP. A toolbox for hierarchical JS objects.
https://treecle.mavo.io
MIT License
6 stars 0 forks source link

Make all functions top level? #2

Closed LeaVerou closed 6 months ago

LeaVerou commented 6 months ago

I was thinking, it may make for a more predictable API to avoid namespaces and just have every function be top-level, e.g. setParent() instead of parents.set(). That works better when you do import * from treecle . What do you think @adamjanicki2?

adamjanicki2 commented 6 months ago

I support this!

LeaVerou commented 6 months ago

This is also required for option 1 in #1 so I'm on it