Re: number formatting
Re: number formatting
- Subject: Re: number formatting
- From: Lance Bland <email@hidden>
- Date: Sat, 23 Feb 2002 17:36:32 -0500
On Saturday, February 23, 2002, at 04:44 PM, John Hvrnkvist wrote:
I think that for a new numeric type to work well, it would have ot be
supported at the language level, not just at the library level. One
reason floating point is used so much is that C supports the convenient
mathematical syntax with it. Having to use Objective-C style objects
for mathematics doesn't seem like a very good idea to me. It's the sort
of thing that Objective-C is worst at.
We have a language and code translator that translates our code base
(about 1 million lines now) into Obj-C. It also senses arithmetic Obj-C
classes and builds the arithmetic expression tree from conventional
arithmetic syntax and translates to Obj-C syntax, so that really isn't
an issue for our code development work.
The issue I would be most concerned about would be efficiency and
inability to eliminate temps or span nodes. C++ arithmetic operator
overloading has the same problem.
-lance
_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.