Overloading dot or arrow in this fashion would be a very unfortunate
choice.
My suggestion is not to worry about this, since the s-expression syntax
is going away in any case.
shap
On Tue, 2008-09-30 at 14:41 -0700, Pal-Kristian Engstad wrote:
> I think the (member ...) construction is poorly named. Instead of using
> "(member if id)" as a syntax for "if.id", perhaps "member" should be
> replaced with a single dot ".", i.e.:
>
> (. sloc id) <=> sloc.id
> (. sloc id1 id2 id3) <=> sloc.id1.id2.id3
>
> Additionally, it might be an idea to support integer values as well. Hence:
>
> (. aloc 3) <=> (array-nth aloc3) { Is there a reason not to have
> aloc[3]? }
> (. vec 2) <=> vec[2] <=> (vector-nth vec 3)
>
> If using a single dot is not lexable, then perhaps use "->" instead.
>
> Also, using #| and |# as (nested) comment blocks could be useful.
>
> PKE.
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev