
Hello Ashley, Saturday, May 20, 2006, 4:31:36 AM, you wrote:
Occasionally in library proposals one comes across classes of this form:
any classes can be emulated using records. moreover, they are really implemented using records - see http://research.microsoft.com/~simonpj/Papers/classhask.ps.gz Jan-Willem already pointed why classes are better - they are in many cases known at compile time, and you don't need to pass additional record each time. in particular, i heavily use inlining and in my libs all time-critical functions are specialized on the place of call. using of records will make my benchmarks run 10-100 times slower (sometimes i see such behavior when changes in code disables this inlining) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com