Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • MStack.Of[T] - generic
  • MStack.OfInt - stack of Int - non-boxing
  • MStack.OfMaybe[T] - doesn't create box for the Maybe object. Uses null for Nope, and a regular object reference for One.
    • However, MStackOfMaybe[Int] will box and unbox the Int Note JIRA issue DFDL - 1456 - MStack.OfMaybe[T] really should not be accepting and returning null or object, it should be accepting and returning Maybe[T], and just storing internally as null vs object to avoid boxing the Maybe[T]

Allocate on "the stack" Using OnStack and LocalStack

...