Home / Report Question

Q. What does the `@discardableResult` attribute do?
  • A. Ignores errors in a function
  • B. Allows a function’s return value to be unused
  • C. Suppresses compiler warnings
  • D. Prevents unwrapping of optionals