Re: Downcase of a symbol

2016-08-13 Thread David Kastrup
Urs Liska writes: >>Case insensitivity is almost never a good idea. It leads to stuff that >>sometimes works and sometimes fails under mysterious circumstances. >> >>For example, you are aware that in a Turkish locale, I downcases to ı >>instead of i , and i uppercases to

Re: Downcase of a symbol

2016-08-13 Thread Urs Liska
>Case insensitivity is almost never a good idea. It leads to stuff that >sometimes works and sometimes fails under mysterious circumstances. > >For example, you are aware that in a Turkish locale, I downcases to ı >instead of i , and i uppercases to İ instead of I ? > >And if you do

Re: Downcase of a symbol

2016-08-13 Thread David Kastrup
gt;> >>> % Return the lowercase version of a symbol >>> #(define (symbol->lowercase sym) >>>(string->symbol >>> (string-downcase >>> (symbol->string sym >>> >>> Just a small question: this seems so general >

Re: Downcase of a symbol

2016-08-13 Thread Urs Liska
fine (symbol->lowercase sym) >> (string->symbol >> (string-downcase >> (symbol->string sym >> >> Just a small question: this seems so general > Why? What would that be useful for? Normal convention for symbols is > already lowercase. I accep

Re: Downcase of a symbol

2016-08-13 Thread David Kastrup
Urs Liska <u...@openlilylib.org> writes: > I have written a function to return the lowercase version of a symbol > for use in my library as > > % Return the lowercase version of a symbol > #(define (symbol->lowercase sym) >(string->symbol > (string-do

Downcase of a symbol

2016-08-12 Thread Urs Liska
Hi, I have written a function to return the lowercase version of a symbol for use in my library as % Return the lowercase version of a symbol #(define (symbol->lowercase sym) (string->symbol (string-downcase (symbol->string sym Just a small question: this seems so gener