And also I can just wrap it in an identity function or something, but unless I 
can find a way to tell it to produce (list "A " "string" " escape”), it could 
produce some weird error messages if I (or someone else using it) forgets to do 
that.  

On Dec 27, 2014, at 11:45 AM, Alexander D. Knauth <[email protected]> wrote:

> But that produces '("A " ("string") " escape”) when I would want it to 
> produce '("A " "string" " escape”).
> 
> On Dec 27, 2014, at 11:42 AM, Matthew Butterick <[email protected]> wrote:
> 
>> @list{A @'{string} escape}
>> 
>> ?
>> 
>> 
>> On Sat, Dec 27, 2014 at 8:21 AM, Alexander D. Knauth <[email protected]> 
>> wrote:
>> Is there any way to make the at-exp reader turn @list{A @"string" escape} 
>> into (list "A " "string" " escape”),
>> instead of into (list “A string escape”) ?
>> 
>> The reason is that I wanted to make my own versions of format, printf, 
>> fprintf, error, etc. that would work with the at-exp reader and
>> convert something like this:
>> @my-error['f]{message
>>                 given: ~v@"something"
>>                 other-arguments: ~v@"something-else" 
>> ~v@"another-something-else"}
>> into something like this:
>> (error 'f "message\n  given: ~v\n  other-arguments: ~v ~v"
>>        "something" "something-else" "another-something-else")
>> 
>> It works the way I want it to if the “something”s etc. are anything other 
>> than a string literal, but is there any way to make it work for string 
>> literals?
>> 
>> 
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users
>> 
>> 
>> ____________________
>>  Racket Users list:
>>  http://lists.racket-lang.org/users
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to