Hello,

I've mentioned the idea of "programmable delimiters" here before.

My 'define-record-type++' code (ab)uses the popular "dot" syntax for method invocation (and field access). In the spirit of "programmable delimiters", I'm now wondering about a "programmable dot". Right now, the dot syntax indicates a literal pair. With a programmable dot, you'd get an expansion into:

    (dot LEFT-EXPR RIGHT-EXPR)

And the default binding of the 'dot' macro would be to call 'cons'.

Of course, for this to work with things like method invocation:

    (num.sqrt)

the dot would have to be recognized even when not whitespace delimited. Still, in certain libraries, I'd be happy to exchange literal pair syntax for a 'dot' macro.

Ed

Reply via email to