Hacker News new | past | comments | ask | show | jobs | submit login

If int means int64 on one platform and int32 on another platform, one should expect that some things might require care to port correctly.

That's just the way things have been. It's not a particularly good or pleasant situation. If the Go team wants to make this better, all the power to them. (And I know for a fact that it doesn't have to be this way. It's just the expectation we've come to accept as normal. Squeak runs bit-identically on over 50 combinations of OS and processor.)

A compile-time error because an automatic cast can't be performed on the new platform is infinitely better than a forced cast that silently introduces run-time errors

"Silently" here being that the programmer mindlessly puts in the cast because the compiler "forces" her to? I don't think the compiler is at fault here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: