News for hackers. Stuff that matters.
Re:Basil.js – Smart persistence layer by nawitus on Saturday July 26, 2014 @12:13PM (#8090027)
Why do you need a mechanism for that instead of using arrays?
Re:Basil.js – Smart persistence layer by cobalt2760 on Saturday July 26, 2014 @12:21PM (#8090046)
Instead of getting an array from storage, pushing a new item inside and then storing it again, it could be nice to have directly this small mechaniam built in to avoid this logic in the application.
Re:Basil.js – Smart persistence layer by nawitus on Saturday July 26, 2014 @03:46PM (#8090548)
Hmm, that's true. The library could monkey patch .push (etc.), but it wouldn't support setting the property directly with [index] (until Object.observe is mainstream enough).