The worst D code you'll ever see

Jonathan Marler johnnymarler at gmail.com
Tue Jan 15 20:10:55 UTC 2019


On Tuesday, 15 January 2019 at 10:55:02 UTC, bauss wrote:
> I think I just wrote the worst D code in existence.
>
> https://www.reddit.com/r/badcode/comments/aftpcf/bad_code_coding_challenge_2_primes_between_x_and_y/ee41he6/
>
> What it does is find prime numbers between X and Y and adds 
> them to an array.
>
> It's part of a coding challenge to write bad code, but figured 
> I'd share here.
>
> It's rare I see D used in contests, so I figured I would use it 
> for this one.
>
> Enjoy the cringe.

why God? why?


More information about the Digitalmars-d mailing list