jostylr / literate-programming-lib

The library component of literate-programming
MIT License
36 stars 3 forks source link

review augment #41

Closed jostylr closed 7 years ago

jostylr commented 7 years ago

review augments and see if another approach works better, maybe prototyping though that doesn't work well with arrays or maybe just having the dot property do some kind of inference magic.

jostylr commented 7 years ago

Thinking to remove augments entirely. Implement mapc as a command that applies the following command to the object in whatever way it can, namely, it looks for a forEach, followed by a length, followed by keys. Also plan on making shortcut of *cmd instead of mapc cmd.

Store is a troublesome command. Store by itself would store the object. mapc store wouldn't know what to associate with. So create separate storeMinor command that takes as first argument the block name and then the keys become the minor block names

jostylr commented 7 years ago

mapc works, but need to deal with leaders in terms of command being defined. Need to add in * as a leader.

for store, the following should work: *store block:*KEY* and it should store them all. Need to test that.