News for hackers. Stuff that matters.
Re:Finish your stuff by kmicklas on Sunday October 15, 2017 @08:58PM (#15480198)
> Anyone is perfectly capable of implementing a Maybe/Option/whatever type in C

C doesn't even have parametric polymorphism, I'm not sure how you're imagining this can be done.

Re:Finish your stuff by dragonwriter on Sunday October 15, 2017 @09:04PM (#15480211)
Parametric polymorphism is needed to implement “Maybe” as a generic type that can be applied to another type, but you can implement individual concrete Maybe X types without it.

You could possibly use macro programming to do it “generically” at a level outside the type system.