From: christopher diggins (cdiggins_at_[hidden])
Date: 2005-02-01 21:51:17
I have just completed a prototype for a functional programming language
called Unimperative, which is also valid C++. This language is implemented
in C++ by overloading the comma operator and use of the boost::any library.
The language syntax is similar to Scheme but with the significant difference
that a Function is called as (MyFxn, x, y). For instance where in Scheme you
might write a factorial function as:
(if (zero? n)
(* n (fact (- n 1))))))
In Unimperative you could write it as:
Function Factorial =
(Eq, _1, 0),
(Mult, _1, (Eval, self, (Dec, _1))));
You can also write procedural code in Unimperative
Function F =
I have written a bit more on the language and provided some code examples at
Well anyway, my question to the group, is whether there is some potential
interest in this kind of library, and to find out if anyone wants to
collaborate. Also, any suggestions on the kinds of features that would make
this language/library more interesting to users and/or the boost community?
Thanks in advance.
Object Oriented Template Library (OOTL)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk