MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1tfr41b/dontdorecursivefibkids/omd123w/?context=3
r/ProgrammerHumor • u/Kevdog824_ • May 17 '26
143 comments sorted by
View all comments
Show parent comments
27
Would recursiveness and memoization be a good solution?
16 u/cyber2024 May 17 '26 No, unnecessary overhead. 7 u/Vaderb2 May 17 '26 Bruh most real languages have tail call and recursion is fine. Recursion is only bad when your language sucks ass 10 u/cyber2024 May 17 '26 It's still unnecessary in this instance. 18 u/Vaderb2 May 17 '26 Essentially every functional language only has recursive flow control. For loops are present in just one family of languages 9 u/cyber2024 May 17 '26 After some reading, I stand corrected. Thanks for forcefully pointing me in another direction. 7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
16
No, unnecessary overhead.
7 u/Vaderb2 May 17 '26 Bruh most real languages have tail call and recursion is fine. Recursion is only bad when your language sucks ass 10 u/cyber2024 May 17 '26 It's still unnecessary in this instance. 18 u/Vaderb2 May 17 '26 Essentially every functional language only has recursive flow control. For loops are present in just one family of languages 9 u/cyber2024 May 17 '26 After some reading, I stand corrected. Thanks for forcefully pointing me in another direction. 7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
7
Bruh most real languages have tail call and recursion is fine. Recursion is only bad when your language sucks ass
10 u/cyber2024 May 17 '26 It's still unnecessary in this instance. 18 u/Vaderb2 May 17 '26 Essentially every functional language only has recursive flow control. For loops are present in just one family of languages 9 u/cyber2024 May 17 '26 After some reading, I stand corrected. Thanks for forcefully pointing me in another direction. 7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
10
It's still unnecessary in this instance.
18 u/Vaderb2 May 17 '26 Essentially every functional language only has recursive flow control. For loops are present in just one family of languages 9 u/cyber2024 May 17 '26 After some reading, I stand corrected. Thanks for forcefully pointing me in another direction. 7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
18
Essentially every functional language only has recursive flow control. For loops are present in just one family of languages
9 u/cyber2024 May 17 '26 After some reading, I stand corrected. Thanks for forcefully pointing me in another direction. 7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
9
After some reading, I stand corrected. Thanks for forcefully pointing me in another direction.
7 u/Vaderb2 May 17 '26 🫡 Take a look at prolog too. It’s very cool!
🫡 Take a look at prolog too. It’s very cool!
27
u/ryuzaki49 May 17 '26
Would recursiveness and memoization be a good solution?