Re: Ann: URI quasiquotes library
"Richard A. O'Keefe" <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I am rather unhappy about magical variable names being exposed.
On 6/07/2013, at 9:56 AM, Michael Hendricks wrote:
>
> 'relative URI reference' :-
> __uri_qq_base = 'https://example.org/path/',
> U = {|uri||to/resource|},
> U = {|uri||/path/to/resource|},
> U = 'https://example.org/path/to/resource'.
Why can't this be something like
'relative URI reference' :-
{|with_uri_base|https://example.org/path/|},
> U = {|uri||to/resource|},
> U = {|uri||/path/to/resource|},
> U = 'https://example.org/path/to/resource'.
I would hope that by doing it entirely within quasi-quoters
you could use variable names *guaranteed* to be inexpressible
in source code, or if not, at least unused in the current code.