Apr. 1st, 2010
little masterpieces from scalaz
Apr. 1st, 2010 03:48 pmsource
package scalaz trait PartialApply1Of2[T[_, _], A] { type Apply[B] = T[A, B] type Flip[B] = T[B, A] }
use json structure to keep type structure
Apr. 1st, 2010 06:28 pmYou won't believe how elegantly json can replace (missing) reflection in, say, j2me. Just map class structure to json structure, so that if, say, in "real life" an attribute belongs to a common ancestor, you should keep it in that ancestor in json.
If you know what I mean.
Probably need to write a big post.
Generally speaking, since json is javascript, one can just follow javascript tricks to mimic prototypes... which is, of course, just lisp (omfg, when I will learn to use just lisp...)
If you know what I mean.
Probably need to write a big post.
Generally speaking, since json is javascript, one can just follow javascript tricks to mimic prototypes... which is, of course, just lisp (omfg, when I will learn to use just lisp...)