Ian Henry personal blog

Quote-unquote "macros"

You’ve probably seen this Python 101 thing before: @memoized def fib(n): if n <= 1: return n return fib(n - 1) + fib(n - 2) Leaving aside the absurdity of computing Fibonacci numbers recursively, it’s a common first introduction to Python decorators and higher-order functions. fib is just a function, and memoized…
Points
101
HN comments
70
Submissions
1
Cited by
0 commenters

Programming LanguagesSoftware Engineering2024

On Hacker News

SubmittedTitle on HNPointsComments
Aug 12, 2024Quote-unquote "macros" by ianthehenry10170

More from Ian Henry

All 12 posts →

Related posts from the same era