Skip to content

Allow . in identifier names? #103

@JohanWiltink

Description

@JohanWiltink
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.

Activity

added
ideaA potential feature/improvement. Not confirmed.
and removed on Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaA potential feature/improvement. Not confirmed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JohanWiltink

        Issue actions

          Allow `.` in identifier names? · Issue #103 · codewars/lambda-calculus