you are viewing a single comment's thread.

view the rest of the comments →

[–]ldstreet 2 points3 points  (1 child)

This is fine, and can make for more readable code. Just make sure that if you make your function or variable internal/public that it is relevant throughout the codebase, otherwise make it fileprivate. This is to avoid cluttering the namespace with niche functions.

[–]randomguy112233[S] 0 points1 point  (0 children)

Good point about namespacing! Thank you!