News for hackers. Stuff that matters.
Re:Untyped Programs Don’t Exist by anon_d on Friday December 07, 2018 @04:45AM (#18626288)
Javascript is Unityped. In Haskell/ML, you would define the type of Javascript objects by doing something like this:

    data JSObj
      = Num Double
      | Str String
      | Obj (Hashtable String JSObj)
      | True
      | False
      | Nil
      | Undefined

There are no comments on this comment yet.