Y
Hacker News
new
|
ask
|
show
|
jobs
by
jwatte
2744 days ago
C isn't one of those languages, though.
1 comments
tonyg
2743 days ago
The analogous would be the Go-style represent-a-sum-badly-as-a-product,
struct nonzero_t { int is_negative; unsigned int one_less_than_the_absolute_value; };
which, under interpretation, ranges from -(2^32) to -1 and +1 to +(2^32).
link