[Haskell-cafe] Hints for Euler Problem 11

Kim-Ee Yeoh a.biurvOir4 at asuhan.com
Fri Aug 17 03:49:20 EDT 2007



Lennart Augustsson wrote:
> 
> On 8/16/07, Kim-Ee Yeoh <a.biurvOir4 at asuhan.com> wrote:
>> 'Course not. The (++) function like all Haskell functions is only a
>> /promise/ to do its job. What does "assembling at compile time"
>> mean here:
>>
>> s = "I will not write infinite loops " ++ s
> 
> But if the strings are all constant it's perfectly feasible to concatenate
> them at compile time.
> 

It's feasible and I might add that it isn't worth it. Not for just
concatenation. How much static evaluation do you want to see
in Haskell?

-- 
View this message in context: http://www.nabble.com/Hints-for-Euler-Problem-11-tf4114963.html#a12195537
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list