r/shittyprogramming • • Nov 21 '18

Reading in input

Post image
395 Upvotes

28 comments sorted by

View all comments

Show parent comment

3

u/Rockytriton Nov 22 '18

StackOverflowError

4

u/tdammers Nov 22 '18

So that's a "negative" on the TCO. Check.

1

u/[deleted] Nov 22 '18

Just change go(); to return go(); for proper tail execution. No more stack overflow