Christopher Smith wrote:
a straight translation you almost inevitably end up with an inefficient
system.
Oh, lordy, how many times have I seen someone say
x = query("SELECT * FROM Customer");
for each y = x[id] {
z = query("SELECT * FROM order WHERE order.customer = $y")
}
Yow. Try a join, people.
With one week in Haskell, another programmer and I were able to get
programs that worked. Of course, it took us more time than to do it in
other languages. That seems to be improving rather rapidly.
I imagine you could also avoid a lot of the complexity of monads if you
had an outer environment that invoked Haskell functions functionally.
E.g., if you had a web server that invoked a pure-functional routine for
each page, with arguments being the input from the user (i.e., the form)
and the output being a list of SQL statements to perform and a the page
to return to the user, for example. Then the web server has all the
non-functional stuff.
--
Darren New / San Diego, CA, USA (PST)
His kernel fu is strong.
He studied at the Shao Linux Temple.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg