News for hackers. Stuff that matters.
Re:Five Popular Myths about C++: Postscript by sacado2 on Wednesday December 31, 2014 @01:50PM (#8820529)
Go is middle-level, lower than scripting languages, higher than C++. You have control over memory layout, which lets you use less memory than a language that boxes everything (like Java or Python). You can use linear structs, or references to data, whatever fits your problem best. But, to do that, you need pointers.

However, Go pointers can't be casted to another type and you can't do pointer arithmetic. In this way, they are very close to Java or Python references, except they're made explicit. How can these kinds of pointers be any worse than references ?

Re:Five Popular Myths about C++: Postscript by nawitus on Wednesday December 31, 2014 @02:26PM (#8820697)
>How can these kinds of pointers be any worse than references ?

Because references are easier to use.

Re:Five Popular Myths about C++: Postscript by sacado2 on Thursday January 01, 2015 @04:10PM (#8824330)
I get your point, although I think references are not that easier ; if one doesn't think what's happening underneath when using refernces, nasty bugs can occur.