Memorizing a programming language??? Why would you do that? Seriously.
Ok, you can learn all that while using the language, but a card deck allows me to review it 5 minutes before sleeping.
https://chat.openai.com/share/10801cef-37a5-41cf-a0d3-52cf38...
I don't see why you'd try to memorize a language. We have the Internet. /shrug
In Python, I can use regex from memory. In Swift, I have to look up the docs every time. It would be nice to have it memorized.