Skip to content

chanwoo/Clojure-Object-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

No packages published