Already mentioned in https://github.com/tonsky/FiraCode/issues/36
Samples:
let () = print_endline "Hello World!" in
let () = print_endline "How are you?"
const generateRandomNumber = () => 4
In JS, it means no args, in ocaml it means unit.
I propose a similar look <>: <> merges into a diamond shape and () should merge into a lens shape.
I used to have [] as a square, and had a lot of backslash about it. I personally liked it. I鈥檒l keep this as an idea for future custom versions, thanks!
Yes, it is a difficult decision in that sense.
If [1, 2] is a list, then [] is an empty list and one would like to see both the start token [ and the end token ].
So in a LISP the same can be said for (1, 2, 3) and ().
Given these, I think it _does_ make sense to leave (), [] and other _potential_ list begin/end tokens alone.
I stand convinced. You can close the issue :)
move the brackets to be closer without merging them
afaik, in c++ you can write template<>, and it's two tokens < and >, but noone complains
Most helpful comment
I used to have
[]as a square, and had a lot of backslash about it. I personally liked it. I鈥檒l keep this as an idea for future custom versions, thanks!