foo – syntax of local-replacing hint.

0, semantics.
0.0, level-entity: notify the runtime to try the local-replacing as much as possible.
0.1, level-reference: level-entity + save the result to the same reference – it looks like performing an update.

1, syntax.
1.0, level-entity-func: (&func …)
1.0.0, (impl this …) => (&impl this …)
1.0.1, (impl stmt …) => (&impl stmt …) – reasonable?
1.0.2, (impl ref …) => (impl ref …)
1.0.3, (&impl ref …) => (&impl ref …)

1.1, level-entity-pkg: (&pkg:method …)
1.1.0, (this:method …) => (&this:method …)
1.1.1, (stmt:method …) => (&stmt:method …) – reasonable?
1.1.2, (ref:method …) => (ref:method …)
1.1.3, (&ref:method …) => (&ref:method …)

1.2, level-reference-func: ($func target) => (decl target (&func target))
1.2.0, ‘target’ must be a reference.

1.3, level-reference-pkg: ($pkg:method …) => (decl pkg (&pkg:method …))
1.3.0, ‘pkg’ must be a reference.

foo – generic semantics

0, fundamental concepts
0.0, reference – identifiers, static, environment.
0.1, evaluation – statements, dynamic, variation, evolution.

1, fundamental elements
1.0, list – fixed-point, static.
1.1, eval – evaluating, dynamic.
1.2, quote – evaluable, transitional.

2, static-based semantics
2.0, (…) – fixed-point.
2.1, (quote …) – evaluable.
2.2, (eval …) – evaluating.

3, dynamic-based semantics
3.0, (…) – evaluating.
3.1, (quote …) – evaluable.
3.2, (list …) – fixed-point.

4, comparison of them.
4.0, static-based is more easy to build a tree.
4.1, dynamic-based is more easy to express evaluating.

jquery-ajax-json: $.post(), $.ajax() and “??”

If you are posting JSON data, and, if the data may contain ‘??’, the $.ajax() should be used.
$.post() has a bug which will replace the first ‘??’ to an internal type identifier.

  $.ajax({
    type: “POST”,
    contentType: “application/json; charset=utf-8″,
    dataType: “json”,
    url: serverUrl,
    data: stringifiedJSON,
    success: function (data, status, xhr) {
      // succeeded.
    }
  })
  .fail(function(xhr, status) {
    // failed.
  })
  .always(function(xhr, status) {
    // always to be executed.
  });

the related bug@jquery.com