HaxeFoundation / HaxeFoundation/haxe

More features for externs

Open
#5,297 10 comments 7 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

As discussed with various people at WWX we should look into adding some more features for extern classes to make native integration easier. The two main ones are operator overloading and custom array access.

I think this should be easy because we don't have to worry about the run-time behavior. As long as our selection algorithm is wide enough to match the native semantics, everything else should be taken care of by the run-time already.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the compiler's extern-class handling and the selection algorithm mentioned in the issue. Determine the scope needed for operator overloading and custom array access, and verify that both match the intended native semantics without requiring runtime changes.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.