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

[Feature request] std globals aliases #527

Open
Commandcracker opened this issue May 29, 2023 · 0 comments
Open

[Feature request] std globals aliases #527

Commandcracker opened this issue May 29, 2023 · 0 comments
Labels
A-standard-library Area: Standard Library C-enhancement Category: Feature request or improvement

Comments

@Commandcracker
Copy link

Description

std globals aliases would make writing a std faster.

Example:

    assert.error:
        args:
            - type: function
            - type: string
              required: false
    assert.Error:
        args:
            - type: function
            - type: string
              required: false
    assert.has_error:
        args:
            - type: function
            - type: string
              required: false
    assert.no_error:
        args:
            - type: function
            - type: string
              required: false
    assert.no_has_error:
        args:
            - type: function
            - type: string
              required: false
    assert.has_no_error:
        args:
            - type: function
            - type: string
              required: false

    assert.error:
        args:
            - type: function
            - type: string
              required: false
        aliases:
            - assert.Error
            - assert.has_error
            - assert.no_error
            - assert.no_has_error
            - assert.has_no_error
@Kampfkarren Kampfkarren added A-standard-library Area: Standard Library C-enhancement Category: Feature request or improvement labels Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-standard-library Area: Standard Library C-enhancement Category: Feature request or improvement
Projects
None yet
Development

No branches or pull requests

2 participants