Spotted on twitter: Rust user enthusiastically blogs about moving to D

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 7 10:06:05 PST 2017


On Tue, Mar 07, 2017 at 05:52:23PM +0000, Ola Fosheim Grøstad via Digitalmars-d wrote:
> On Tuesday, 7 March 2017 at 12:53:42 UTC, bachmeier wrote:
> > D's arrays are sane, consistent, and logically intuitive even
> > accounting for the "determinism issue". I've never understood why
> > this behavior is surprising - it's exactly what I'd expect. But then
> > I don't program in a way that it's relevant, so maybe I don't
> > understand how it matters.
> 
> It is horrible. It is something you only would expect from a hacky
> scripting language. No ifs or buts.

That's an opinion.

Like bachmeier, I have found D arrays (well, slices) to be exactly how I
expect arrays to work. The "determinism issue" is really only a problem
in exceptional cases where you probably should be using a custom type
instead. Or in cases where you're worried about performance and
therefore have to understand the nitty-gritty of exactly how slices work
in all possible cases -- something that you already have to learn in the
first place, if performance is a concern.  I love D arrays, warts and
all.


T

-- 
"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." -- Bertrand Russell. "How come he didn't put 'I think' at the end of it?" -- Anonymous


More information about the Digitalmars-d mailing list