News for hackers. Stuff that matters.
Re:It’s time to give Firefox another chance by tmzt on Saturday September 30, 2017 @12:42PM (#15373675)
Yes, though more to HRESULTS from the Windows API. This meant return values could indicate success or a specific error which could be determined with macros.

Rust actually has a similar mechanism in its standard lib, the Result enum whuch resembles Maybe from Haskell, but has either a returned value if successful (which can be the empty object ()) or an Error.

XPCOM was modeled on the Microsoft version using the same vtable tricks that it used to enable dynamic dispatch through interfaces.

Re:It’s time to give Firefox another chance by steveklabnik on Saturday September 30, 2017 @01:46PM (#15374029)
Small note, Option in Rust is Maybe in Haskell, Result in Rust is Either in Haskell.