Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1424

Need a Maybe for primitive types

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 1.1.0
    • Libraries
    • None

      With the current implementation of Maybe, it requires that the value is an AnyRef, which ends up boxing/unboxing primitive types. We either need to change how Maybe works so that it doesn't box on primitives, or create a new Maybe type that is specialized for primitives to not require boxing.

      Additionally, this should have a toString method that allows us to print "(unknown)" or something similar for the Nope type to minimize allocations and evaluations of of strings.

              dthompson David Thompson
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: