10 ms·
Superficially, I find the syntax very untuitive to read. Most languages opt to use <> for typevariables. Is there a specific reason you chose to deviate from th
by helix278 2mo ago
Superficially, I find the syntax very untuitive to read. Most languages opt to use <> for typevariables. Is there a specific reason you chose to deviate from that and use []?
- dwb 2mo agoI actually can't think of any functional languages that use < > for type variables (I'm sure there's one or two, but it can't be common)
- smuffinator 2mo agoThis is only true for C-style languages? Flix uses square brackets, as does Effekt, and Nim, as well as Python. Probably many more I'm missing. Gleam even uses normal parens.
- mrkeen 2mo agoI'm not sure most languages get a vote here. They can't even represent Fuse's Functor example, i.e. f: A -> B, x: F[A] so maybe they don't get any points for syntax.
- lilbigdoot 2mo agoScala and a few others use `[]` (the compiler itself is written in Scala)