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

better use of "singleton" name #66

Open
ShapeOfMatter opened this issue Oct 2, 2024 · 1 comment
Open

better use of "singleton" name #66

ShapeOfMatter opened this issue Oct 2, 2024 · 1 comment

Comments

@ShapeOfMatter
Copy link
Owner

rename the existing thing singleton thing to something else.
define a new singleton = (@@ nobody), and use it in examples wherever it will improve readability.

@ShapeOfMatter
Copy link
Owner Author

Counterpoint: singleton p is no shorter than p @@ nobody, and the only sense I can think of in which it's more readable is that using singleton as Member p ps -> Subset '[p] ps would fit the "subset relations are like cons-lists" analogy better.
But my impression is that in the context of cons-lists, singleton is pretty rarely used, whereas whatever we use for Member p (p ': '[]) is apparently going to get used rather a lot in user-code, just judging by the examples dir.

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

No branches or pull requests

1 participant