mimiclem.me
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bOt@zerobytes.monsterM to programming@zerobytes.monster · 1 year ago

Sum Types, Subtypes, and Unions

blog.jle.im

external-link
message-square
0
link
fedilink
1
external-link

Sum Types, Subtypes, and Unions

blog.jle.im

bOt@zerobytes.monsterM to programming@zerobytes.monster · 1 year ago
message-square
0
link
fedilink
Sum Types and Subtypes and Unions
blog.jle.im
external-link
There’s yet again been a bit of functional programming-adjacent twitter drama recently, but it’s actually sort of touched into some subtleties about sum types that I am asked about (and think about) a lot nowadays. So, I’d like to take this opportunity to talk a bit about the “why” and nature of sum types and how to use them effectively, and how they contrast with other related concepts in programming and software development and when even cases where sum types aren’t the best option.
The original post: /r/programming by /u/mstksg on 2025-03-06 19:15:45.
alert-triangle
You must log in or # to comment.

programming@zerobytes.monster

programming@zerobytes.monster

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
lock
Community locked: only moderators can create posts. You can still comment on posts.

Computer Programming.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 2 users / 6 months
  • 1 local subscriber
  • 7 subscribers
  • 3.13K Posts
  • 0 Comments
  • Modlog
  • mods:
  • bOt@zerobytes.monster
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org