Extension methods
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Racket
- Stars
- 601
- Forks
- 74
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
Currently, namespaces can be extended, and classes double as namespaces. But that's not enough to support extension methods. I'd like this to work:
#lang rhombus
export: Foo // includes Foo.foo() method
class Foo()
method Foo.foo(): 42
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides a Rhombus example using export: Foo, class Foo() and method Foo.foo(): 42, but names no implementation files or tests. Start by locating the code that handles namespaces, classes, and method declarations, then define completion as making the example compile and allowing Foo.foo() to return 42.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100