juan_gandhi: (VP)
2016-11-22 01:30 pm
Entry tags:

new js

const x = {
  get y() { return "I am y of x" }
}

println(x.y)
juan_gandhi: (VP)
2016-06-30 06:46 pm
Entry tags:

I love Scala.js

it's amazing
juan_gandhi: (VP)
2015-03-05 08:43 pm
Entry tags:

scala hacker writes javascript...

s0.toUpperCase().contains(s1.toUpperCase)


guess what will happen
juan_gandhi: (VP)
2013-05-09 12:02 pm
Entry tags:

spent about an hour...

we have a home-brewed js function, textOf(element), that extracts the text contents of an element. And why, oh why, did not I make it idempotent? So, in one place I was writing stuff like x=textOf(something), and further down return textOf(x).