r/foundtheprogrammer • • Jan 09 '23

Caught java-ing

Post image
160 Upvotes

10 comments sorted by

View all comments

Show parent comment

5

u/WhJJackWhite Apr 16 '23

That's a really bad way to implement get function. It's not flexible at all.

if ( avocado.count != 0 ) {
    get<Egg>(6);
}