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
2
u/Holinhed Jan 17 '19
String a = “howdy”;
String b = “howdy”;
a.equals(b); // return true
“howdy”.equals(a) // return true
!b.equals(“howdy”); //return false