4

Got hands-on with algebraic data types for the first time ever while studying F# today. I can see the draw, but I don't really give a shit. Why? Cus 99% of the classes I'm going to work with on a daily basis are still gonna be

DatabaseReadWriteBaseImplementation2 {
sequentialIntegerID: string
}

Comments
  • 2
    You‘d think so because you aren’t used to thinking in that way. Once you get used to algebraic types, you will see more and more places where they can be applied and make more sense than the usual types.

    After a decade of Swift, I wouldn’t want to go back to something like C# and one of the major reasons is that I don’t want to work without algebraic types anymore.
  • 0
    @Lensflare I think so because on a daily basis I work with other people's code and I can barely think of any place besides a really techy place that will actually use algebraic data types, let alone a language that implements them.
  • 1
    @AlgoRythm well I don’t know what you expect then. You seem to be excited to learn a new language but then you say that you don’t give a shit about some things because you’ll never be using that language… I don’t get it.
  • 1
    Btw, it’s not that unusual. Swift and Kotlin you’ll probably use anywhere where you make iOS or/and Android apps.
    Then there is also Rust.
  • 1
    @Lensflare That's the tragedy, isn't it? Excited to learn it, but crushed by the reality that it'll only ever benefit me in personal projects or academically.
  • 1
    @Lensflare I don't quite see myself working with Swift or Kotlin in the foreseeable future, unfortunately. I do quite like Swift though, maybe I'll spend a weekend with it one of these times.
Add Comment