Ad
  • Default User Avatar

    I feel like as a kotlin exercise this misses the point of nullability in kotlin. for any type T whe can have T? or nullable T and this is a core feature of kotlin the the language is built to support. so in using optional you are using javas hacky tool that is designed to do what kotlin natively does.