<br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 6:36 PM, bearophile <span dir="ltr"><<a href="mailto:bearophileHUGS@lycos.com">bearophileHUGS@lycos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Jonathan M Davis:<br>
<div class="im"><br>
> Regardless of what language you're<br>
> programming in, it's generally best to program in the typical paradigms of that<br>
> language. Trying to contort it to act like another language is _not_ going to<br>
> result in optimal code.<br>
<br>
</div>D supports functional style too now. In Bugzilla I have put most of the requests I think are useful. So if you have specific comments please add to those.</blockquote><div><br></div><div>That's not the point. No matter what styles of programming D supports, it will support them differently from other languages. This is true for pretty much any language, so direct comparisons don't really get you much.</div>
<div>I come from the Java world with some Scala experience, and I frequently find myself trying to write code the Java make-everything-an-object way, and I just as frequently find that D can do things much more simply if I blend the OO with imperative code and chuck in a few functional elements where useful.</div>
<div>I can appreciate what you're trying to do, but doing a line by line comparison of D and Python and asking for features to make D look more like Python just feels like you're trying to contort D into something it never claimed to be. It's not entirely wrong, but it's not entirely right either.</div>
</div>