3 ms·
const weasels = 5 const lawyers = 5 const mustelids = weasels - lawyers feedWeaselsEach(chickenPortions / mustelids)
by JulianMorrison 14y ago
const weasels = 5
const lawyers = 5
const mustelids = weasels - lawyers
feedWeaselsEach(chickenPortions / mustelids)
- netcraft 14y agowould this count as a constant 0 and be caught by the compiler?
- JulianMorrison 14y agoYup. Constants are computed at compile time in Go.