[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
copy pasting sweet expressions
This page is part of the web mail archives of SRFI 110 from before July 7th, 2015. The new archives for SRFI 110 contain all messages, not just those from before July 7th, 2015.
- To: <srfi-110@xxxxxxxxxxxxxxxxx>
- Subject: copy pasting sweet expressions
- From: "Jos Koot" <jos.koot@xxxxxxxxx>
- Date: Thu, 7 Mar 2013 03:40:44 +0100
- Delivered-to: srfi-110@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type:x-mailer:thread-index:x-mimeole; bh=K5emb17X00C2ST8NYZbbi0PKTlafYqItp9Ln6NDeLQE=; b=WDofIIH7PL9pIY0cjTDQELpBDiSS4sK8EF08vPrLoc4OdEKTgr9wv3LUK3qDy2hvXu 77xtPzH03AdOVc+pkoP19V0iDS01vCNr9hhbldy9kVjJDdPkV/U2jIkV/GsGpbsAgyQu ILwhWJvAPo7bMwWDoJkuOFK8/iStPFbmnfEr4XnF82eir6yeXYrVlQPAyPjy3TRpWsZf H9h2z7eMOXd3oRETR+9ZlIxi+DbPTC6g4NGkexxkpxU1W4VDkuC9ZhRtAl6UaGHC0to5 gCIlO0C+i/6882NWfoGt61oOJBYthA+o5GbzIl/vg20/4Trhgck45oIupaz9eZFx3b28 Jnaw==
- Thread-index: Ac4a3SknzaoQsN2FRO+adtXSZqmysA==
Nice idea, but how to
deal with my frequent copy/paste actions in the definitionss window of
DrRacket?
For sexprs, copy/paste is easy in the
definitions window of DrRacket. Just copy/paste and reindent. How easy would
this be with sweet expressions? Can we copy/paste at a choosen level of
indentation?
Say I have a
definition
(define (f a b
c)
def/expr
...
last-expr)
When I am not sure
that function f produces correct results, I modify it temporarily
as:
(define (f a b c)
(let ((r (let()
def/expr
...
last-expr))) (printf "result of proc f: ~s~n~n" r) r))
Notice that here
the indenting is deliberately wrong. Using the temporal "let ((r" form I
don't care about the indenting. After seeing what is going on I use ctl Z in
order to remove the extra let-form and the print-form. How would this be with
sweet expressions?
Wish you good
luck. A sweet expressions language is certainly possible in Racket. If i can be
useful for (parts of) the implementation,mail me
privately.
Jos