Perl/PHP are able to create a function on the fly through eval. One of the first programs I wrote when I was learning C took a mathematical function definition from a user and plotted a graph of it.

I believe a functional language is good for inspiration, to get some new ideas about what a computer could possibly do, but once you know what you want, implementations should be done in a procedural language possibly with some code generation from somewhat functionally defined (possibly in part) modules. A good practical example of that would be just about any program of significance that uses a YACC parser.

Overall, I believe a good approach to software design would be to come up with some problem-specific language that allows you to succinctly explain to the computer what you want exactly, and then write a code generator that will translate the specs into lightning-fast code. The language does not have to be either functional or procedural, or be classified in any way. It just needs to be easy to learn, self-documenting, and intuitive.




-- Sasha Pachev Create online surveys at http://www.surveyz.com/

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to