csspre icon indicating copy to clipboard operation
csspre copied to clipboard

Objects/maps

Open kizu opened this issue 11 years ago • 1 comments

There are a lot of things you could do with objects/hashes/maps, at least Stylus and Sass have them: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#maps aтd http://learnboost.github.io/stylus/docs/hashes.html

There are a lot of nuances in working with objects both in Stylus and Sass, so it wouldn't be a short post, haha.

kizu avatar Jul 03 '14 19:07 kizu

I like the idea, however it needs to be broken down to smaller, logically autonomous posts.

For example we can have a post for each of these topics:

  • creating/defining maps/lists/hashes/objects
  • manipulating existing maps/lists/hashes/objects (adding/removing values)
  • extracting values from maps/lists/hashes/objects (for individual use or for loops, each, etc)
  • checking stuff about maps/lists/hashes/objects (value existence, length, other facts that may be useful)

Some of these might still make for a pretty long article though.

futekov avatar Jul 03 '14 20:07 futekov