dynamic-object: Object-oriented programming with duck typing and singleton classes.
This package aims to combine the merit of Haskell's open, strong type system with flexible Object-oriented programming found in dynamically-typed languages such as python or ruby.
Object
s are implemented as Map
s from method keys
to values. Each key specifies its own value types.
You can add new members at runtime, for any instances of the object (singleton class).
At the same time, you have typed and runtime-error-free access to the members (duck typing).
See Data.Object.Dynamic.Examples.PointParticle
for examples.
Modules
[Index]
Downloads
- dynamic-object-0.2.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.2, 0.2.0.1, 0.2.1 |
---|---|
Dependencies | base (>=4.5 && <5), containers (>=0.4), lens (>=3.7.3), mtl (>=2.1), QuickCheck, text, transformers (>=0.3) [details] |
License | BSD-3-Clause |
Author | Takayuki Muranushi |
Maintainer | muranushi@gmail.com |
Category | Data |
Source repo | head: git clone https://github.com/nushio3/dynamic-object |
Uploaded | by TakayukiMuranushi at 2013-01-15T08:18:50Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 4238 total (16 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |