A friendly programming language from the future.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago (1 child)

It’s not parenthesis (in the PEMDAS sense), it’s the unit type and it’s normally expressed like that. If you’re not familiar with type systems, it’s the typing equivalent of void.

  • source
  • parent
  • hideshow 2 child comments
  • [+] 2 points 2 years ago* (last edited 1 year ago) (1 child)
  • [–] 1 point 2 years ago

    I’m not sure what you’re asking. Plenty of modern languages use the unit type; typescript, Rust, not sure you consider Haskell a modern language.

    From the look of it, this language seems to use it in a function signature declaration, which would make sense.

  • source
  • parent