[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] ditching syntax-case modules for the utf8 egg

From: John Cowan
Subject: Re: [Chicken-users] ditching syntax-case modules for the utf8 egg
Date: Fri, 14 Mar 2008 13:44:41 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Alex Shinn scripsit:

> The new version actually makes this easier.  You can just
> have one version of spiffy that does
>   (declare (not usual-integrations))

But that would really suck: we want car to stay integrated while leaving
string-length not integrated.  What you actually want is:

(declare (not usual-integrations 
  ;; R5RS
  string-length string-ref string-set! make-string string substring
  string->list list->string string-fill! write-char read-char display
  ;; R5RS, should maybe be changed in Chicken core
  char-alphabetic? char-numeric? char-whitespace?
  char-upper-case? char-lower-case? char-upcase char-downcase
  ;; library
  reverse-list->string print print*
  ;; extras
  read-string write-string read-token ->string conc string-chop string-split
  string-translate substring=? substring-ci=? substring-index substring-index-ci
  ;; regexp
  grep regexp string-substitute string-substitute* string-split-fields
  string-match string-match-positions string-match-offsets
  string-search string-search-positions string-search-offsets

BTW, here's a small patch for utf8.html that makes it a little more
true and a little less tendentious:

--- utf8.html.orig      2008-03-14 13:41:50.934695000 -0400
+++ utf8.html   2008-03-14 13:43:02.411553000 -0400
@@ -335,9 +335,9 @@
 encoding, but multibyte characters in the encoding may include ASCII
 bytes, breaking the rule we need for safe ASCII parsing.  A few
 encodings like UTF-16 and UTF-32 are completely incompatible.  UTF-16
-is primarily only used these days by Java, a victim of the
-unfortunate fact that at first UTF-16 was fixed with but is no longer
-with the advent of surrogate pairs.  Note that even without this
+is used by Java and other JVM languages, by C#, VB.NET
+and other CLR languages, and by Javascript under its various names.
+Note that even without this
 module you can write source code in Chicken in any ASCII compatible
 encoding like ISO-8859-* or UTF-8 and define symbols with that
 encoding (letting you replace lambda with syntax for a real greek

John Cowan    address@hidden
Half the lies they tell about me are true.
        -- Tallulah Bankhead, American actress

reply via email to

[Prev in Thread] Current Thread [Next in Thread]