Re: [Readable-discuss] Clojure supports UTF-8 (thus, easy Unicode support)

2014-11-09 Thread David A. Wheeler
On Sun, 9 Nov 2014 07:54:11 +0800, Alan Manuel Gloria almkg...@gmail.com 
wrote:
 Ugh.  Non-ASCII is hard to type on a majority of keyboards unless you
 add special stuff.  I don't think that'll increase acceptance.

The only reasonable option I see is #[...].  I don't think changing the 
semantics of {...} would increase its likelihood of acceptance in Clojure.

Also, the BDFL of Clojure objected to *any* infix support a few years ago.
Don't know if that's still true or not.

--- David A. Wheeler

--
___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss


Re: [Readable-discuss] Clojure supports UTF-8 (thus, easy Unicode support)

2014-11-08 Thread Alan Manuel Gloria
Ugh.  Non-ASCII is hard to type on a majority of keyboards unless you
add special stuff.  I don't think that'll increase acceptance.

On Thu, Oct 30, 2014 at 12:58 AM, David A. Wheeler
dwhee...@dwheeler.com wrote:
 It appears that Clojure normally loads source files assuming they are UTF-8,
 which makes supporting Unicode much easier.  This suggests that using a 
 non-ASCII
 character might not be too hard for them to support.

 Source file src/jvm/clojure/lang/Compiler.java routine loadFile has this 
 Java line,
 which I believe forces reading of source code as UTF-8:
   return load(new InputStreamReader(f, RT.UTF8), new 
 File(file).getAbsolutePath(), (new File(file)).getName());

 It's possible to do indirect loading where additional magic is necessary to 
 force
 configuration of the encoding, as discussed here:
   
 https://stackoverflow.com/questions/1431008/enabling-utf-8-encoding-for-clojure-source-files

 --- David A. Wheeler

 --
 ___
 Readable-discuss mailing list
 Readable-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/readable-discuss

--
___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss