Skip to content
  • 0.0.2
  • 2b63fc8
  • Compare
    Choose a tag to compare
    Search for a tag
  • 0.0.2
  • 2b63fc8
  • Compare
    Choose a tag to compare
    Search for a tag

@stephentyrone stephentyrone released this Nov 20, 2019 · 23 commits to master since this release

There are two significant API changes to the Complex module in this release:

  1. The unsafeLengthSquared property has been renamed lengthSquared, because--while it can overflow or underflow--the result is always well-defined, and therefore does not lead to memory unsafety. The old property is still present, marked unavailable, so you should get a useful renaming message from the compiler or your IDE. The old property will be removed after a period of time.

  2. The Complex(length:phase:) initializer has been made non-optional. Instead it is now a precondition that the length must be either zero or infinite if phase is not finite. Updating code to account for this change should be quite straightforward, because you are unlikely to have been using the paths that could return nil previously. If you have any questions, please ask for assistance on the forums.

Assets 2
You can’t perform that action at this time.