johnwahba / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

It's not a problem per se but some explanation would be nice as 1<<64 overflows any int type Go h... #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
https://feedback.corp.google.com/#/Report/1009946201

Description:
It's not a problem per se but some explanation would be nice as 1<<64 overflows 
any int type Go has;  how come it can be evaluated? (And it doesn't evaluate to 
0 as it would in like C but to an exception.)

UI language: en
Detected language: en

Original issue reported on code.google.com by feedback...@gmail.com on 12 Jul 2013 at 4:18