HNHacker News
TopNewBestAskShowJobs

sisalcat

-33 karma · joined April 23, 2014

submissionscomments
sisalcat··on Go 1.3 beta 1 released
The first one (string with variable interpolation) is not internationalizable, only the third one is.

> the third has ordering issues

In Go you can specify the order in format strings: fmt.Sprintf("%[2]d %[1]d\n", 11, 22)

http://golang.org/pkg/fmt/

sisalcat··on Rust for C++ programmers – part 3: primitive types and operators
That's a strange definition of "crash" you have there. I should go tell my customers next time that their programs definitely didn't crash.
sisalcat··on Rust for C++ programmers – part 3: primitive types and operators
Yes, I can catch SIGSEGV. And I can catch Java NullPointerExceptions and ArrayIndexOutOfBoundsExceptions. So Java prevents all crashes, lol.
sisalcat··on Rust for C++ programmers – part 3: primitive types and operators
This prevents buffer overflow errors, but not crashes.
sisalcat··on Rust for C++ programmers – part 3: primitive types and operators
> it will cause a task failure

i.e. a crash.

sisalcat··on Rust for C++ programmers – part 3: primitive types and operators
From the project home page: "prevents almost all crashes (in theory)"

How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.