gf dispatch on prototype #1371
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#1371
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement generic functions that dispatch not based on the class of an object argument, but directly on the class argument—which later may generalize to dispatching on prototypes that are not themselves classes, or not used to instantiate anything.
Duncan Mak requested the feature to port code from Dylan, but it is useful in general, enables a variety of object protocols (e.g. to allocate, instantiate and initialize one or multiple objects when you have the desired class but not yet an object itself), and supports Prototype OO as we'd like to do with POM.
@vyzo I can handle the runtime, but I don't understand where are the compile-time optimizations that I need to modify afterwards. I'll start with working on the runtime for now.