Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added shortcuts for classes, arrays, clocks, and receivers.
These can now all be created and registered in a single call: pd.class(name) pd.table(name) pd.clock(obj, method) pd.receive(obj, sym, method) Much less to write, much easier to remember. It's such a simple thing, yet it reduces cognitive load and improves usability quite a lot. Of course, you can still use the whole pd.Class:new():register(...) and pd.Table:new():sync(...), etc. rigmarole if you prefer, in fact the shortcuts are implemented in terms of these. They're simple (tail) calls, so overhead is negligible.
- Loading branch information