promptdojo_

Closures and the @ symbol — what AI is doing when it stacks decorators — step 6 of 9

Claude wrote a decorator and forgot to return the inner wrapper from the outer function. As a result, the decorated function is None and the script crashes with a TypeError. Add the missing return wrapper inside loud. Output should be:

calling: add
5
The break is on line 5 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.