News for hackers. Stuff that matters.
Re:The type system is a programmer's best friend by dgan on Sunday November 06, 2022 @04:28PM (#33497419)
? Okey?

  module Example
    type mytype
    val id: mytype -> mytype
  end = struct
    type mytype = {
      position:(int * int)
    }
    type othertype = int
    let id self = self

  end
```

How many classes I have defined? Exactly zero. How many types I have defined? Definetely not zero. One of these types is secretly equivalent to a primitive type, while the other is not, and none of this is known to users of these types.

I am not sure why keep trying to show "class = type". It is wrong, those are different concepts. I don't care what c++ says

There are no comments on this comment yet.