| ▲ | 9rx 4 days ago | |||||||
The semantics are clearly defined as being the same as the C code I posted earlier. Why would one try to complicate the situation by thinking that it would somehow magically change sometimes? | ||||||||
| ▲ | simiones 4 days ago | parent [-] | |||||||
Because people hear that Go supports value types and so is more efficient than Java because it can allocate on the stack*, and so they start thinking that they need to manage the stack. * Of course, in reality, Java also does escape analysis to allocate on the stack, though it's less likely to happen because of the lack of value types. | ||||||||
| ||||||||