Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:Switching away from c++ is difficult. (Score 1) 501

haskell failed in supporting for-loops (MapM_ is not exactly the same thing)


for lo hi action = mapM_ action [lo .. hi]

for 1 4 print
1
2
3
4

I don't see how this relates to correctness though. The nice thing about for in most languages is its termination guarantee; you don't get that in the C++ version.

Slashdot Top Deals

Enzymes are things invented by biologists that explain things which otherwise require harder thinking. -- Jerome Lettvin

Working...