"bearophile" <bearophileh...@lycos.com> wrote in message news:i3lb30$26v...@digitalmars.com... > Jonathan M Davis: >> I would have thought that being more idomatic would have resulted in >> slower code >> than what Walter did, but interestingly enough, both programs are faster >> with my >> code. They might take more memory though. I'm not quite sure how to check >> that. >> In any cases, you wanted some idiomatic D2 solutions, so there you go. > > Your code looks better. > > My (probably controversial) opinion on this is that the idiomatic D > solution for those text "scripts" is to use a scripting language, as > Python :-) >
I can respect that. Personally, though, I find a lot of value in not needing to switch languages for that sort of thing. Too much "context switch" for my brain ;)