News for hackers. Stuff that matters.
Re:Types as Interfaces by PoignardAzur on Tuesday July 23, 2024 @07:44AM (#41044946)
Ok, but why?

I like the beauty of an expressive type system as much as the next guy, but is there any scenario where:

    type FooBar = mergeMaps Foo Bar
Is better for solving real-world problems than

    type FooBar = { "_foo", Foo, "_bar", Bar }
or whatever?
Re:Types as Interfaces by posix_monad on Tuesday July 23, 2024 @09:56AM (#41046077)
With mergeMaps, you don't have to write out all of the properties.