-
Notifications
You must be signed in to change notification settings - Fork 0
chanwoo/Clojure-Object-System
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# object-system
Object Oriented System similar to Smalltalk for Clojure
## Usage
#Example
(def Rectangle
(OBJECT :subclass
{:class 'Rectangle
:instance-variable-names [:width :height]
:area (fn [] (* (self :width) (self :height)))}))
(let [rectangle (Rectangle :new {:width 20 :height 30})]
(rectangle :area))
=> 600
You can find more usages in a unit test file.
## Installation
## License
About
Object Oriented System similar to Smalltalk for Clojure
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published