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

Remove usages of ≔ and replace those with := #1465

Closed
jonaprieto opened this issue Aug 20, 2022 · 5 comments · Fixed by #1563
Closed

Remove usages of ≔ and replace those with := #1465

jonaprieto opened this issue Aug 20, 2022 · 5 comments · Fixed by #1563
Assignees
Labels
Milestone

Comments

@jonaprieto
Copy link
Collaborator

jonaprieto commented Aug 20, 2022

(originally by @james-chf)

the difference between ≔ and = is hard to spot, I thought = was the symbol to use when writing function clauses

@jonaprieto jonaprieto added enhancement New feature or request pending-review labels Aug 20, 2022
@jonaprieto
Copy link
Collaborator Author

We decided to remove all the Unicode input from the examples and the standard without removing support for typing them.

@jonaprieto jonaprieto added this to the 0.2.5 milestone Aug 30, 2022
@janmasrovira janmasrovira added refactor and removed enhancement New feature or request labels Sep 13, 2022
@lukaszcz
Copy link
Collaborator

They unicode ≔ is still present in the examples.

@lukaszcz lukaszcz modified the milestones: 0.2.5, 0.2.6 Sep 14, 2022
@lukaszcz
Copy link
Collaborator

In fact, I would advocate removing ≔ and the unicode cons ∷ entirely. I don't see the point of having a unicode symbol which is supposed to look exactly like a combination of two ASCII characters. What is gained here except for confusion?

With lambda, forall, etc, even arrow, one can argue that unicode is more concise and corresponds more closely to the mathematical symbols one really wants to represent, which makes the text more readable (though not necessarily writable without substantial IDE support). Those symbols can't be represented faithfully with ASCII characters. But ≔ and ∷ ? They are supposed to look exactly or almost exactly like := and ::, so what's the point?

The ≔ is even worse than ∷ in this respect, because with many fonts it actually looks almost like "=" not ":=", which only adds to the confusion.

@lukaszcz
Copy link
Collaborator

Btw, I like the way Lean introduces unicode, how unicode is used, and the general feel of the syntax:

https://leanprover.github.io/theorem_proving_in_lean4/dependent_type_theory.html#simple-type-theory

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

Successfully merging a pull request may close this issue.

3 participants