[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] with-*-*-port
From: |
Felix Winkelmann |
Subject: |
Re: [Chicken-users] with-*-*-port |
Date: |
Fri, 28 Feb 2003 18:22:47 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 |
Joerg F. Wittenberger wrote:
True, it is paranoid, it is the safest method and it SHOULD be overly
paranoid, i.e., not needed:
1. The ##sys#standard-input is never changed at application level (it
must be hidden from that level), only chicken internal code can
change it.
What about
(current-input-port <PORT>)
?
It may be questionable (from a language lawyerly point of view), but
it's pretty handy...
2. Clean coding would never assign to ##sys#standard-input except by
means of with-input-from-port and friends.
Right, but the form of current-input-port above is just
a thin wrapper around the assignment.
a) It wastes some CPU cycles and memory objecst. Not so much of a
problem sometimes.
I guess we have no choice to it play safe, here.
cheers,
felix