Skip to content

Surfacing iterables in argument names and docstrings #1697

@sogaiu

Description

@sogaiu

As a follow-up to this recent comment, I've started going through boot.janet looking for argument names and docstrings that might benefit from making it explicit that an iterable is involved. Please see the parent issue for a bit more background.

Since empty? now uses iter instead of xs and this change was seen as worthwhile, it seems possible that other functions / macros might be improved in a similar fashion.

One caveat might be if a fiber doesn't stop yielding many (all?) of the functions / macros may not terminate in some cases (at least not normally?).

I'll try to report in this issue what I find. Additional help and comments welcome :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions