www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - what means this ? "It's no contest" on the "Rationale for Builtins"

reply dennis luehring <dl.soluz gmx.net> writes:
http://digitalmars.com/d/builtin.html

at the bottom: "? It's no contest"
Oct 14 2005
next sibling parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
In other words, this:

c = (6 + 2i - 1 + 3i) / 3i;

Is so many levels better than:

c = (complex!(double)(6,2) + complex!(double)(-1,3)) / 
complex!(double)(0,3);

That there can't even be any sort of contest between them.  The first is 
simply, inarguably, better.  Or, at least, that's what it says.  I tend 
to agree.

-[Unknown]


 http://digitalmars.com/d/builtin.html
 
 at the bottom: "? It's no contest"

Oct 14 2005
prev sibling parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
dennis luehring wrote:
 http://digitalmars.com/d/builtin.html
 
 at the bottom: "? It's no contest"

If the placement of the '?' on the start of the line confused you, think about it like this: ------ Isn't: c = (6 + 2i - 1 + 3i) / 3i; far preferable than writing: c = (complex!(double)(6,2) + complex!(double)(-1,3)) / complex!(double)(0,3); ? It's no contest ---- it's basically saying: ----- Isn't X far preferable than writing Y ? It's no contest ----
Oct 14 2005