I have a large list of functions that returns strings. I consider a string as true if it is non-empty. Empty string means false for me. I keep calling these functions until I get a true (non-empty string). If none returns true, the result fails. It is an implementation of a unification algorithm actually.
I did not know how to write the code more readable, this is why I was asking how to check for empty string in a nicer way.
- Log in to post comments
.png)
.png)