On Sun, 2010-04-04 at 22:50 +0800, Andy Stewart wrote: > Haskell should do a runtime binding, it's really useful. > I think it's not too hard, because Python also support runtime binding. >
Haskell should not do a runtime binding. That would be very much against static type checking and everything that make Haskell great. Python is a very different language that Haskell. A straight mapping from the fake object oriented approach of Gtk to something like Python or Javascript is much more straightforward that binding Haskell, and a runtime binding is much more in line with dynamic typing. It's not clear to me whether a runtime binding would be feasible or makes sense for Haskell. That would require calling a function which you don't know the type of until runtime, which I don't think you can make work; even if you could you certainly wouldn't want to. I don't like the whole runtime binding idea anyway. - Matt ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel