racket / racket/rhombus

Extension methods

Open
#260 10 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.