14 Jan 20:34
Re: some ideas for Haskell', from Python
Max Rabkin <max.rabkin <at> gmail.com>
2009-01-14 19:34:05 GMT
2009-01-14 19:34:05 GMT
2009/1/14 Tim Wawrzynczak <inforichland <at> gmail.com>: > The reason the macro is better is that the length of the list is known at > compile time, so you don't need to traverse the list to calculate the length > of the list. Or you could use a real compiler (perhaps even a glorious one) that does constant folding when the list length is constant, but have your function still work when it isn't constant. --Max
RSS Feed