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
>>
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
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()
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 = {}
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
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:
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