4 ms·
> who the hell gets the address of stack memory and returns it? Most of beginners out there, who then cannot figure out the reason for their crashes, especiall
by seba_dos1 9y ago
> who the hell gets the address of stack memory and returns it?
Most of beginners out there, who then cannot figure out the reason for their crashes, especially when it's not explicitly returned as the value of the function ;)
- Const-me 9y agoNeither of these two languages are exceptionally friendly towards beginners. Python, Ruby, Java/C#, Go are IMO much better for them.
- macintux 9y agoBut eventually if someone turns to C no amount of Python experience will prepare them for this category of memory problems, so they still qualify as a “beginner” for this discussion.
- Const-me 9y ago> no amount of Python experience will prepare them for this category of memory problems General programming experience helps a lot. Someone coming to C from a higher level language likely knows to read compiler output and warnings, use debugger, read diagnostic output. With modern C toolset, that experience will help solve 99% of such errors. OTOH, someone coming to Rust encounters set of problems no amount of programming experience help to solve. IMO for beginners, Rust’s learning curve is dangerously close to that of pure functional languages.