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

In C a function pointer can be passed around, and usually a pointer to contect structure is passed around. That happens to be more practical.

References are cool. That makes one point for Pascal.



Nested routines in classical Pascal support downwards funargs; they are closures lite, i.e. actually more expressive than C functions. But we are talking classical Pascal; every practical commercial Pascal implementation supports function pointers directly, just like C does.




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

Search: