Re: code critique
- From: Vassil Nikolov <vnikolov+usenet@xxxxxxxxx>
- Date: 30 May 2007 22:46:22 -0400
On Wed, 30 May 2007 17:13:27 +0200, Daniel Leidisch <news@xxxxxxxxxxxx> said:
| In article <87r6oyigvo.fsf@xxxxxxxxxxxxxxxxxx> you wrote:
|| ...
|| * A portability caveat: ANSI Common Lisp does not require characters
|| to be encoded in ASCII or any other encoding, and so CODE-CHAR may
|| not do what you expect here.
| Do you have any suggestions as to how to implement this
| more portably? After a quick (apropos 'ascii) I recognized
| that all fbound symbols are in the SB-IMPL package (sbcl is my
| cl-implementation of choice), so I assume that there is no standard
| way to do it. The first thing that came to my mind was to add an
| ascii table lookup myself. Is there a better solution?
Not really. Either you or a library writer needs to provide the
mapping for URL-encoded characters. (Imagine that your program is
running in EBCDIC land; how can it have "native" knowledge that,
say, #x20 (rather than #x40) is the code for #\Space?)
---Vassil.
--
The truly good code is the obviously correct code.
.
- References:
- code critique
- From: Daniel Leidisch
- Re: code critique
- From: Richard M Kreuter
- Re: code critique
- From: Daniel Leidisch
- code critique
- Prev by Date: Re: n accuracy
- Next by Date: fn abstraction?
- Previous by thread: Re: code critique
- Next by thread: Re: code critique
- Index(es):
Relevant Pages
|
|