BitC is both object-disoriented and dysfunctional :-). A fairly simple
hack would restore much of the surface idiom of object-oriented
programming, and I would like feedback on whether it should be
considered.

Syntax hack:

  Given an application of the form

     (a.x [args])

  we first attempt to resolve 'x' as a field name within a. If no
  such field name exists, we rewrite the application as

    (x a [args])

  and see if we can resolve that.

This is nothing more or less than a disgusting hack, but I sort of
suspect that it would work most of the time.

Alternative: instead of overloading "." (which is what makes this
horrible) we could use some other form of punctuation, in which case
this is pure sugar.

Finish urping, clean up the mess before it stinks up your office, and
then please share your reactions...



shap

_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to