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

> 1. The nomenclature with "sc_array_term()" as the destructor (the opposite of sc_array_init()) was new to me; I'm not saying that's a real problem but it's at least adding friction in a way.

I think there shouldn't be any need to innovate in the naming of these kinds of functions... GLib got it perfectly right [0] with the pair init / finalize. One might like the alternative init / deinit if the goal is to have some symmetry in the naming... but there are not many better choices.

free is to be used (always IMHO) typically as the opposite of new, make, or create.

"Naming things is difficult" and all that...

[0]: https://docs.gtk.org/gobject/concepts.html



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

Search: