3 ms·
# abstract internals for no reason func doThing(x: bool) if (x) return true else return false # make sure our logic works as expected
by steve_adams_86 8mo ago
# abstract internals for no reason
func doThing(x: bool)
if (x)
return true
else
return false
# make sure our logic works as expected
assert(doThing(true))
# ???
# profit
It's excellent software engineering because there are tests