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

[Types] Add new extend function? #1588

Open
github-actions bot opened this issue Mar 15, 2024 · 0 comments
Open

[Types] Add new extend function? #1588

github-actions bot opened this issue Mar 15, 2024 · 0 comments
Labels
enhancement New feature or request library Issues related to the standard library open discussion Open discussion about features/ideas/suggestions todo Automatically generated issues from TODOs in the code

Comments

@github-actions
Copy link

[Types] Add new extend function?
This would replace Collections\extend (see relevant comment there)
and could be used for extending an existing user type.
In a few words: let's say we have defined a type, with its methods
and everything. Or if that type has been defined in an external package.
How could we add extra methods to it? By "extending" it ;-)

# TODO(Types) Add new `extend` function?

proc defineLibrary*() =

    # TODO(Types) Add new `extend` function?
    #  This would replace Collections\extend (see relevant comment there)
    #  and could be used for extending an existing user type. 
    #  In a few words: let's say we have `define`d a type, with its methods
    #  and everything. Or if that type has been defined in an external package.
    #  How could we add extra methods to it? By "extending" it ;-)
    #  labels: library, enhancement, open discussion

    #----------------------------
    # Functions
    #----------------------------

9bea3b6d34cb39ddc2892d06b558f1347e9dcc98

@github-actions github-actions bot added enhancement New feature or request library Issues related to the standard library open discussion Open discussion about features/ideas/suggestions todo Automatically generated issues from TODOs in the code labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request library Issues related to the standard library open discussion Open discussion about features/ideas/suggestions todo Automatically generated issues from TODOs in the code
Projects
None yet
Development

No branches or pull requests

0 participants