Firacode: Add "()" ligature

Created on 21 Jan 2019  路  4Comments  路  Source: tonsky/FiraCode

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.

stylistic sets

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!

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miniBill picture miniBill  路  4Comments

Photonico picture Photonico  路  3Comments

ulope picture ulope  路  4Comments

pedrowebcomum picture pedrowebcomum  路  4Comments

tomByrer picture tomByrer  路  4Comments