Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLeft arrow ligature in JavaScript + Flow #113
Open
Comments
|
Same with TypeScript (and other programming languages with generics): let foo: Bar<-3>; |
|
It sounds like this is not something that can be special cased out in the font code (as in, ignore ligature when X occurs). That said, I can provide a stylistic set that turns off that specific ligature generally that would need to be accessible via font settings. |
|
FWIW, I think flow is uniquely impacted by this given its variance sigils for generic parameters. TypeScript is impacted, but I suspect only in very niche cases where users are passing a negative number literal type. I think C# generic syntax doesn't allow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Environment
Steps to reproduce
declare type MapStateToProps<-S, -OP, +SP> =Expected behavior
Don't apply a ligature in that case. It should keep as
<-, because<is used to declare a generic, and-for write-only (see https://flow.org/en/docs/types/interfaces/#interface-property-variance-read-only-and-write-only-).Actual behavior
That
<-Sis changed by a left arrow.