Objective Javascript
So my next project is to write a JS parser that will turn
into
yadda ya think? not the best examples...
I just want to introduce named parameters (not using a map!) and quick anonymous function definitions. (So why do I call it objective...)
{ my_alert: alert_string | alert(alert_string); }
[map: my_alert onto: \["a","b","c"]]
[node addEvent("click", {event| alert('whatever'); }) ]
into
function my_alert(alertString) { alert(alertString); }
map$onto(alertString, ["a","b","c"]);
node.addEvent("click", function(event){ alert('whatever'); });
yadda ya think? not the best examples...
I just want to introduce named parameters (not using a map!) and quick anonymous function definitions. (So why do I call it objective...)
0 Comments:
Post a Comment
<< Home