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

Allow . in identifier names? #103

Open
JohanWiltink opened this issue Jan 29, 2024 · 0 comments
Open

Allow . in identifier names? #103

JohanWiltink opened this issue Jan 29, 2024 · 0 comments
Labels
idea A potential feature/improvement. Not confirmed.

Comments

@JohanWiltink
Copy link
Collaborator

For namespacing purposes, . in names might be useful. Say you seriously use both Stream and List - you're going to have operator overlap.

Modules are going to need their own namespacing some day. / might work?

So you could have List/list.foldl instead of list-foldl. stream.zip-with still makes sense.

In practice, it'd be List/foldl anyway, because you're not going to export namespaced names from modules.

Combine with the ? predicate proposal, and you end up with Number/scott.zero?.
Hmmm .. may want to import multiple Numbers. Number/BinaryScott/add or NegaBinaryScott/Number/not-zero? Can leave that choice to user with import renaming actually. User might do BijectiveBinary-Scott-Number/sub. Or Number.Church/mul. Or have hierarchical modules, and restrict to Number/Scott/succ. But if you import only one Number, you may not want that clutter.

@JohanWiltink JohanWiltink added feature request New feature or request idea A potential feature/improvement. Not confirmed. and removed feature request New feature or request labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea A potential feature/improvement. Not confirmed.
Projects
None yet
Development

No branches or pull requests

1 participant