News for hackers. Stuff that matters.
Re:Ask HN: Why isn't F# more popular? by vram22 on Thursday June 01, 2017 @03:07PM (#14463421)
> So you'd need a `User` that just has raw data, `UserDb` that maybe has that plus an ID/DateAdded/DateModified, a `UserOut` that maybe has that minus PasswordHash, a `UserIn` that maybe has RawPassword/RawPasswordAgain, etc, and conversions between them all.

Why is this needed in F#? Something to do with immutability?

Re:Ask HN: Why isn't F# more popular? by daxfohl on Thursday June 01, 2017 @03:24PM (#14463586)
This assumes you want to use records for your data: records don't have inheritance. So whereas in C# you could create a UserDb that extends User with the Id/DateAdded fields, in F# that's not idiomatic.

I am sure there could be a good way to automate this using type providers, but I haven't tried it yet.