mirror of
https://github.com/kennethreitz/dream-python.git
synced 2026-06-05 23:20:18 +00:00
Added ADT + Memory management
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
__#My Dream:
|
||||
|
||||
* Algebraic Data Types a la Haskell
|
||||
|
||||
Example:
|
||||
|
||||
Let's define the set of natural numbers:
|
||||
|
||||
Nat = Z | S(Nat) with S being the operation "add one" and Z being zero.
|
||||
|
||||
* More freedom / built-in functions for memory management
|
||||
Reference in New Issue
Block a user