Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by sys_64738

3 years ago

Is age really an unsigned byte?

4 comments

sys_64738

Reply

zarzavat  3 years ago

Age is definitely a signed byte, unfortunately. Nobody has ever reached 127, and -1 is valid for foeti.

  • beardyw  3 years ago

    In Korea you are 1 when you are born, so 0 would apply?

  • sph  3 years ago

    Frozen embryos might be even younger than -(9/12)

leeoniya  3 years ago

nope, just a 7-bit ASCII char

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities