Skip to content

A description (and hopefully one day an implementation) of namespaces in Objective-C

Notifications You must be signed in to change notification settings

kylesluder/objc-namespaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Namespaces in Objective-C

Objective-C has lacked namespaces since its creation. Unfortunately because it wholly embraces its message-passing model of OOP, it is very difficult to retrofit existing other languages' approaches to namespacing atop Objective-C without breaking binary compatibility. A naive namespacing approach might make it impossible for code that is not namespace-aware to send meaningful selectors to namespace-aware code.

This proposal introduces a new kind of selector that carries a namespace in addition to, but distinct from, its keywords. It redefines classes, categories and protocols to be members of namespaces, and provides rules for what namespaces their methods belong to.

Work in Progress

This project is a work in progress. Mainline development is occurring on the develop branch. Discussion is happening in GitHub Issues.

About

A description (and hopefully one day an implementation) of namespaces in Objective-C

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages