Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

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

by blancolioni (#28805355) Attached to: Stroustrup Says New C++ Standard Delayed Until 2010 Or Later

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.

The perversity of nature is nowhere better demonstrated by the fact that, when exposed to the same atmosphere, bread becomes hard while crackers become soft.

Working...