What is your favorite D feature?

Jon Degenhardt via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 21 19:02:32 PDT 2017


On Thursday, 22 June 2017 at 01:13:43 UTC, H. S. Teoh wrote:
> On Thu, Jun 22, 2017 at 12:48:25AM +0000, Seb via Digitalmars-d 
> wrote:
>
> [snip]
>
> Slices!  And preferably in an example where it beats C 
> performance by not needing to duplicate strings everywhere.
> ...

For slices the example in blog post I wrote might serve 
(https://dlang.org/blog/2017/05/24/faster-command-line-tools-in-d/). To shorten it drop the associative array component. For example, sum the values in a specific field.

--Jon



More information about the Digitalmars-d mailing list