News for hackers. Stuff that matters.
Re:Introducing HTTP Tracing by AYBABTME on Wednesday October 05, 2016 @12:46PM (#12645500)
That's actually a great counter example! Tho most day-to-day high level PL don't have a type system capable of offering this sort of checks!
Re:Introducing HTTP Tracing by vertex-four on Wednesday October 05, 2016 @01:10PM (#12645714)
Honestly... you could do it as a primitive type if you wanted. The only "special" bits needed are a piece of syntax which checks if it's an error, and if so returns it, else evaluates to the private value; and a way of unwrapping the actual error value when you want to handle it.

Go already has plenty of complicated language primitives with complex behaviour.