1 min readOct 18, 2017
But whether this is a problem or not depends on their relationship. If b is an integral part of a’s semantics, than this is fine. Remember Pascal? There you might have written b as a private (syntactically nested) function inside of a. No problem here AFAICT.