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

How would you write a general function that prints out the values of all fields of any object (without reflection)?



I'm not quite sure, but I don't think this has anything to do with structural typing.




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

Search: