Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

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.

If this is timesharing, give me my share right now.

Working...