Jeremiah Lowin @jlowin.dev · Feb 8

Cursor decided to add a mutable default to my function. If you know what this means, maybe you're laughing. If you don't know what this means, maybe you're hiring AIs as engineers.

21 likes 4 replies

?

Replies

D

darrida.bsky.social · Feb 9

Oh wow.

Rodrigo Girão Serrão 🐍🚀 · Feb 8

If you’re hiring AIs as engineers, it means that calls where the second argument is not provided share that single default dictionary. This means you’ll probably be accumulating stuff in that dict and sharing it across calls instead of using a new, empty dict on each call as you probably wanted.

Nick Mills-Barrett · Feb 8

LLMs really are like new grads.