develooper Front page | perl.perl6.language | Postings from January 2004

Re: Semantics of vector operations

Thread Previous | Thread Next
Jonathan Lang
January 23, 2004 19:54
Re: Semantics of vector operations
Message ID:
Dave Whipp wrote:
> But, presumably, you could write a macro that has a whitespace-eater
> encoded
> somehow. That is,
> macro leach() { chomp_trailing_whitespace; return "�" }
> macro reach () { chomp_leading_whitespace; return "�" }
> then the macro magic would expand "leach eq reach" as "�eq�" (which,
> hopefully, it then re-parses as a single token^Woperator). This doesn't
> solve the generalized problem of disambiguating, though I could see a
> "_" operator defined as a macro that eats all its surrounding 
> whitespace.

...making it a "nospace" character (or is that a "no_space" character? 
Same thing?)

You wouldn't be able to say "chomp_trailing_whitespace" if you did this,

Jonathan "Dataweaver" Lang

Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About