Hacker News new | ask | show | jobs
by mst 2121 days ago
$.name("Keli" :age 50).isOld

wold've been nicer to me but ah well.

2 comments

I can understand $.(:name "Keli" :age 50) but not $.name("Keli" :age 50), why should the age bit go inside the parens? This introduces an asymmetry where the first key appears outside parents and subsequent keys appear inside (and as colon-initialed keywords?!)
I agree, having age(50) separate almost looks like a separate function call.