3 ms·
It's not clear which 'arguments' are required when it's done this way. What's stopping you from calling 'from' without 'to'?
by Mouse47 10y ago
It's not clear which 'arguments' are required when it's done this way. What's stopping you from calling 'from' without 'to'?
- BinaryIdiot 10y agoI think it would just not do anything. I like this type of syntax but only when the required parameters are done up front. Then all chainable are optional / modifiers / events. This is how jQuery works and how I modeled msngr.js. Unless Pouch has anything required missing I think it's fine though maybe a little unintuitive (like can you do multiple froms? Multiple tos? Etc)