Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The "Compound literals are lvalues" is one that caught me out recently.

I've been doing C a long time and thought I knew all the "decent" tricks. When I saw it, I went "Oh, that's one of the silly new dynamic features that I ignore."

Nope.

It's been in the language forever. I'm surprised I never tripped over it before given all the embedded work I do.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: