3 ms·
>what malloc is There is no reason someone who never programmed C would (or should) know what function is used to allocate memory in C.
by smallblacksun 14y ago
>what malloc is
There is no reason someone who never programmed C would (or should) know what function is used to allocate memory in C.
- 10098 14y agoFair enough, but don't you think they should at least know that memory is a resource that needs to be allocated and deallocated and how come that they never have to deallocate memory themselves when writing in python?
- Danieru 14y agoThat is not the same thing as asking about malloc.
- grey-area 14y agoNot all languages are (or should be) like C, and not all languages require manual memory management. If they are going to be programming in Python, there's probably no need for them to be familiar with memory management, or the underlying details of the language implementation - the language is there to insulate you (to a greater or lesser extent) from the machine. Later if it becomes useful to learn about memory management in other languages, they could do so if they are moderately intelligent, it's not rocket science or something that you must learn first or not at all.