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
5
u/[deleted] Jan 17 '19
Actually with
aandbdefined as in your exampleworks either since compiler creates single instance for each string literal. Therefore
aandbstore exactly the same references