d icon indicating copy to clipboard operation
d copied to clipboard

Made crypto square exercise more idiomatic

Open Biotronic opened this issue 5 years ago • 0 comments

So the crypto squares exercise is essentially Java written in D, and does not promote idiomatic D code. I've changed the code to not use classes, and to do range comparisons instead of simple ==. This means older solutions won't work any more (different instantiation of classes vs structs), but new solutions should look a lot more like what's currently considered good D code.

Biotronic avatar Aug 25 '19 19:08 Biotronic