<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.17126"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014>I always use write-style.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014>When I want another format, I use my own formatter 
(available on planet as planet-fmt)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014>Best wishes, Jos</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014>PS </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face="Courier New"><SPAN 
class=917425915-17062014></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> users 
  [mailto:users-bounces@racket-lang.org] <B>On Behalf Of 
  </B>Laurent<BR><B>Sent:</B> martes, 17 de junio de 2014 17:12<BR><B>To:</B> 
  Jason Hemann<BR><B>Cc:</B> users<BR><B>Subject:</B> Re: [racket] Make printer 
  abbreviate unquote at the end of a list<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr>
  <DIV class=gmail_extra>Click on the button in the bottom left corner of 
  DrRacket, then on "Show details", then select another printing 
  style.<BR><BR></DIV>
  <DIV class=gmail_extra>Here are some differences between the 4 
  styles:<BR></DIV>
  <DIV class=gmail_extra><BR>#lang racket<BR>(struct A (x y) #:transparent) ; 
  for the examples below<BR><BR>(list 'xxx '(5 . ,a) (vector 'a 'b) (A 2 
  3))<BR><BR></DIV>
  <DIV class=gmail_extra>; constructor<BR></DIV>
  <DIV class=gmail_extra>; (list 'xxx (list 5 'unquote 'a) (vector 'a 'b) (A 2 
  3))<BR><BR>; quasi-quote<BR>; `(xxx (5 ,'unquote a) #(a b) ,(A 2 
  3))<BR><BR></DIV>
  <DIV class=gmail_extra>; write<BR></DIV>
  <DIV class=gmail_extra>; (xxx (5 . ,a) #(a b) #(struct:A 2 3))<BR><BR></DIV>
  <DIV class=gmail_extra>; print<BR></DIV>
  <DIV class=gmail_extra>; (list 'xxx '(5 unquote a) '#(a b) (A 2 
  3))<BR><BR></DIV>
  <DIV class=gmail_extra>Personally, I generally use the "write" style. I wonder 
  what other people prefer.<BR><BR></DIV>
  <DIV class=gmail_extra>Laurent<BR></DIV>
  <DIV class=gmail_extra><BR></DIV>
  <DIV class=gmail_extra><BR>
  <DIV class=gmail_quote>On Tue, Jun 17, 2014 at 4:40 PM, Jason Hemann <SPAN 
  dir=ltr><<A href="mailto:jhemann@umail.iu.edu" 
  target=_blank>jhemann@umail.iu.edu</A>></SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV dir=ltr><SPAN style="FONT-FAMILY: monospace">Hi,</SPAN>
    <DIV style="FONT-FAMILY: monospace"><BR></DIV>
    <DIV style="FONT-FAMILY: monospace">How do I make Racket's printer 
    abbreviate unquote at the end of a list? See the difference in behavior 
    between racket and petite chez below. </DIV>
    <DIV style="FONT-FAMILY: monospace"><BR></DIV>
    <DIV style="FONT-FAMILY: monospace">
    <DIV>bash-3.2$ <SPAN 
    style="BACKGROUND: rgb(255,255,204)">petite</SPAN></DIV>
    <DIV><SPAN style="BACKGROUND: rgb(255,255,204)">Petite</SPAN> Chez 
    Scheme Version 8.3</DIV>
    <DIV>Copyright (c) 1985-2011 Cadence Research Systems</DIV>
    <DIV><BR></DIV>
    <DIV>> '(5 . ,a)</DIV>
    <DIV>(5 . ,a)</DIV>
    <DIV>> </DIV>
    <DIV>bash-3.2$ <SPAN 
    style="BACKGROUND: rgb(255,255,204)">racket</SPAN> </DIV>
    <DIV>Welcome to <SPAN 
    style="BACKGROUND: rgb(255,255,204)">Racket</SPAN> v6.0.1.</DIV>
    <DIV>> '(5 . ,a)</DIV>
    <DIV>'(5 unquote a)</DIV>
    <DIV>></DIV></DIV>
    <DIV style="FONT-FAMILY: monospace"><BR></DIV>
    <DIV style="FONT-FAMILY: monospace">Thanks,</DIV>
    <DIV style="FONT-FAMILY: monospace"><BR></DIV>
    <DIV 
    style="FONT-FAMILY: monospace">JBH</DIV></DIV><BR>____________________<BR>  
    Racket Users list:<BR>  <A href="http://lists.racket-lang.org/users" 
    target=_blank>http://lists.racket-lang.org/users</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>