Firacode: Generic Swift func !=<T> doesn't render correctly

Created on 6 Apr 2017  Â·  5Comments  Â·  Source: tonsky/FiraCode

Function declaration should render as func ≠<T : RawRepre..., but renders as func !≤T : RawRepre...

screen shot 2017-04-06 at 13 26 00

Most helpful comment

I think this is another reason to get rid of =< as per #355

(and did you mean it should render as func ≠<T? That’s what it would render as without the =< ligature or if != had priority, but that’s not what you listed.

All 5 comments

I think this is another reason to get rid of =< as per #355

(and did you mean it should render as func ≠<T? That’s what it would render as without the =< ligature or if != had priority, but that’s not what you listed.

@dhouck You got it!
And I have no opinion on =< becoming ≤ or not; I imagine someone somewhere uses that but I've never seen it used.

Also, I think I worded it right... I was trying to match my screenshot, so I included the RawReprese :P

The symbol you used is U+2244, NOT ASYMPTOTICALLY EQUAL TO. I would expect != to ligature to U+2260 NOT EQUAL TO, which is what it should be doing.

(The difference is the top bar of the equal sign; is it straight or a tilde?)

Oops, that was just a typo. I originally meant to type func ≠<T, not func ≄<T. Sorry about the confusion :)

+1

Yes… the most common usage for ≤ is <= not =<.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghivert picture ghivert  Â·  4Comments

alis0nc picture alis0nc  Â·  3Comments

Photonico picture Photonico  Â·  3Comments

mlajtos picture mlajtos  Â·  4Comments

Gang-Yang picture Gang-Yang  Â·  3Comments