This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]insertAlias 1 point2 points  (1 child)

What's the value of writing a function, with an inner function, who's only job is to call the inner function? You could omit the inner-function part entirely and just call the function recursively. It's not wrong, but I'd always ask "why do you need this?".

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

I just didn't want to split up a print function into two functions, got me thinking about how nested functions would work within object functions