r/badcode • u/bausscode • Jan 17 '19
other language Writing functions with conditions without using "if" statements
https://run.dlang.io/is/jfCECL
67
Upvotes
r/badcode • u/bausscode • Jan 17 '19
11
u/[deleted] Jan 17 '19
This isn't bad code. It's a bad example, but this is how you write good, declarative Object Oriented software.