Re: Power of D

2012-04-26 Thread Brad Anderson
On Wed, Apr 25, 2012 at 11:55 PM, Era Scarecrow wrote: > On Wednesday, 25 April 2012 at 17:52:36 UTC, bioinfornatics wrote: > >> i search some example of something easy (more easy) to do in D an not >> in another language if possible >> - D - C++ >> - D - Haskell >> - D - Java >> - D - python >>

Re: Power of D

2012-04-26 Thread Era Scarecrow
On Thursday, 26 April 2012 at 12:30:02 UTC, Nicolas Sicard wrote: I think that many D powerful features are also easily done in Python or have easy to use equivalents, thanks to built-in dictionaries, list comprehensions, eval, etc. and so many available libraries. Albeit at the price of a sloo

Re: Power of D

2012-04-26 Thread Nicolas Sicard
On Thursday, 26 April 2012 at 10:50:49 UTC, David wrote: Am 26.04.2012 07:55, schrieb Era Scarecrow: Associative arrays? C++: #include #include map m; Java: import java.util.*; Map map = new HashMap(); D: string[string] map (Don't know the other two... sorry) -- Python: map = dict()

Re: Power of D

2012-04-26 Thread David
Am 26.04.2012 07:55, schrieb Era Scarecrow: Associative arrays? C++: #include #include map m; Java: import java.util.*; Map map = new HashMap(); D: string[string] map (Don't know the other two... sorry) -- Python: map = dict() # or map = {}

Re: Power of D

2012-04-25 Thread Jonathan M Davis
On Wednesday, April 25, 2012 19:51:18 bioinfornatics wrote: > i search some example of something easy (more easy) to do in D an not > in another language if possible > - D - C++ > - D - Haskell > - D - Java > - D - python > > thanks a lot Pretty much everything that Andrei talks about in this re

Re: Power of D

2012-04-25 Thread Era Scarecrow
On Wednesday, 25 April 2012 at 17:52:36 UTC, bioinfornatics wrote: i search some example of something easy (more easy) to do in D an not in another language if possible - D - C++ - D - Haskell - D - Java - D - python thanks a lot Associative arrays? C++: #include #include map m; Java:

Re: Power of D

2012-04-25 Thread Ary Manzana
On 4/26/12 1:51 AM, bioinfornatics wrote: i search some example of something easy (more easy) to do in D an not in another language if possible - D - C++ ... - D - Haskell - D - Java - D - python A segmentation fault is really easy to do in D but hard in those languages. :-P