Re: proposal to toss out text2interval.
On 2013-03-01 07:50:00 +0200, Hossam A. H. Fahmy wrote:
> Also, as Vincent mentioned the definition of a symbol is important. Do
> we want to specify within 1788 a limited set of symbols or allow
> languages to define new symbols? For example, we may allow
> languages/libraries to define arbitrary symbols such as sqrt_of_thirteen
> and accept text2interval("sqrt_of_thirteen") to give a tight
> representation for irrational numbers (as tight and with as large
> precision as the language/library wants).
I don't think that P1788 should specify symbols for text2interval
(or literals); they should be extensions. Instead it should define
constant functions, IMHO. For instance: const_pi(). A language
would be free to implement it as a function and/or a literal
(language bindings are out of the scope of the standard).
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)