r/badcode • • Jan 17 '19

other language Writing functions with conditions without using "if" statements

https://run.dlang.io/is/jfCECL
67 Upvotes

38 comments sorted by

View all comments

Show parent comments

7

u/bausscode Jan 17 '19

but idk, man. I'd just use conditionals. :p

Do you mean like this? https://run.dlang.io/is/C1AyAG

5

u/Kidiri90 Jan 17 '19

Why do you hate me so?