emacs-devel
[Top][All Lists]
Advanced

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

Re: numeri


From: Eli Zaretskii
Subject: Re: numeri
Date: Sat, 29 Nov 2008 20:38:58 +0200

> Date: Sat, 29 Nov 2008 20:05:18 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden
> 
> > From: Andreas Schwab <address@hidden>
> > Cc: address@hidden, address@hidden
> > Date: Sat, 29 Nov 2008 18:39:51 +0100
> > 
> > Eli Zaretskii <address@hidden> writes:
> > 
> > > Right, but why backslash?  Why not something like `digit-four'?
> > 
> > I don't understand the question.  What is digit-four in this context?
> 
> I meant to ask why would it be worse idea to have
> 
>   (get-char-code-property ?4 'numeric-value)
> 
> return a symbol `digit-four' or `digit-4'.
> 
> But maybe the answer is because `\4' is ready for the Lisp reader,
> while the alternatives are not.

Actually, why not make the above return the number 4?  The Unicode
Data File Format says that this property's value is ``an integer or
rational number''.  We could even use 0.2 for characters such as
"VULGAR FRACTION ONE FIFTH".  Isn't that better than `1/5'?




reply via email to

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