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

Over the past four months I wrote a library in C. In said library exists the following chain:

typedef hidden pointer -> object -> dictionary -> attribute object -> linked list -> object

Then the whole thing can start again from the last object. At both the linked list and dictionary points the pointers have been cast to void. During development there was linked list in place of the dictionary. Since this was before I wrote output debuging involved manually walking the two linked lists.

Else where a function takes a void * array of structs yet needs to access the contents and thus requires a pointer to an accessor function.

I love C but it can get confusing. My plan is to spend the next few weeks in recovery learning RoR.



You might want to look at Go. It always felt like a revised version of C with great standard library and sane defaults.




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

Search: