Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make --- a line ligature #1190

Closed
IlanCosman opened this issue Jan 28, 2021 · 9 comments
Closed

Make --- a line ligature #1190

IlanCosman opened this issue Jan 28, 2021 · 9 comments
Milestone

Comments

@IlanCosman
Copy link

Four dashes gets turned into a line ligature in Fira Code. However, in Markdown, 3 dashes is enough to create a break like so:


@tonsky
Copy link
Owner

tonsky commented Jan 28, 2021

I wonder if --- is an operator anywhere else or is it just Markdown thing?

@IlanCosman
Copy link
Author

After some brief research, it seems possible in some languages, yet vastly unlikely that anyone would ever do so:
https://stackoverflow.com/questions/13874179/can-you-have-a-triple-minus-signs-in-c-programming-what-does-it-mean

As the number one comment on the post says: "You can if you know how to survive the wrath of your teammates."

@tonsky
Copy link
Owner

tonsky commented Jan 28, 2021

Looks like Haskell doesn’t use it either (it uses +++ and *** but not ---). So maybe it is worth turning into a line, thank you!

@tonsky tonsky added this to the 6 milestone Jan 28, 2021
@tonsky tonsky closed this as completed in f7c77bf Apr 17, 2021
@pxeger
Copy link

pxeger commented May 2, 2021

Elixir has ---, but it is not implemented by default in any standard libraries: https://hexdocs.pm/elixir/operators.html#custom-and-overridden-operators

@tonsky
Copy link
Owner

tonsky commented May 2, 2021

@pxeger what do you mean by “has, but not implemented”?

@RubenVerg
Copy link

what do you mean by “has, but not implemented”

Elixir supports a limited set of operators, some of which have no definition in the standard library

@tonsky
Copy link
Owner

tonsky commented May 2, 2021

So, like, libraries can redefine --- because it’s reserved, but they can’t invent their own operators like “-?->”?

@RubenVerg
Copy link

If I understand that documentation correctly, yes

@pxeger
Copy link

pxeger commented May 2, 2021

Yes.

I think, on balance, it's better to have it as a line ligature, but I thought I should mention it anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants