• CodexArcanum
    link
    fedilink
    English
    1214 days ago
    import birthday;
    
    let myAge1 = 4;
    let sisterAge1 = 2;
    let myAge2 = 44;
    
    let sisterAge2 = birthday.deriveAge(myAge1, sisterAge1, myAge2);
    
    print(sisterAge2);
    

    Any bugs should be reported upstream. Please open a tracking issue to sync changes with eventual upstream fixes.

    • Natanael
      link
      fedilink
      214 days ago

      The API has the wrong abstraction and the type definitions fail to capture necessary information (such as in which year you were of the given age) and thus conversions can not be guaranteed to be correct