mirror of
https://github.com/i-tu/Hasklig.git
synced 2024-09-11 02:25:46 +03:00
Update README.md
This commit is contained in:
parent
59df63cc83
commit
98a1b5a461
@ -1,10 +1,10 @@
|
||||
_N.B. This is a fork of the_ [Source Code Pro repository](https://github.com/adobe/source-code-pro)
|
||||
|
||||
## Code Ligatures
|
||||
## Hasklig - Ligatures for Haskell
|
||||
|
||||
Programming languages are limited to relatively few characters. As a result of a limited character set, combined character operators surfaced quite early, such as the widely used arrow (`->`), comprised of a hyphen and greater sign. It looks like an arrow if you know the analogy and squint a bit.
|
||||
|
||||
Composite glyphs become especially problematic in languages such as Haskell which utilize these complicated operators (`<-`, `::`, `=>`, `-<`, `>>=` etc.) extensively (over 100 in `lens` alone!). Prettified code improves readability considerably - some Haskell programmers have even resorted to unicode symbols (ie. `⇒`, `←` etc.). This merely opens a whole new can of worms. In addition to encoding/compatibility problems and all the reasons it never worked out in APL, these symbols are one-character-wide and therefore eye-strainingly small.
|
||||
Composite glyphs become especially problematic in languages such as Haskell which utilize these complicated operators (`<-`, `::`, `=>`, `-<`, `>>=` etc.) extensively (over 100 in `lens` alone!). Prettified code improves readability considerably - some Haskell programmers have even resorted to unicode symbols (ie. `⇒`, `←` etc.). This opens a whole new can of worms. In addition to encoding/compatibility problems and all the reasons it never worked out in APL, these symbols are one-character-wide and therefore eye-strainingly small.
|
||||
|
||||
Hasklig solves this problem the way typographers have always solved ill-fitting characters which co-occur often: ligatures. The underlying code stays the same — only the representation changes.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user