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

> The second is a delegate, that will be triggered at any point during runtime. How can the compiler know what x will be?

x is clearly defined to be a number. The compiler should produce an error if the delegate captures x before it has a value assigned.



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

Search: