News for hackers. Stuff that matters.
Re:Code blocks in Python by Goladus on Monday April 23, 2012 @10:25AM (#3878933)
> How would you solve this in Python?

The question is how does codeblocks solve this problem in Python, not how does Haskell solve this problem in Haskell.

Re:Code blocks in Python by Peaker on Tuesday April 24, 2012 @10:43AM (#3884138)
Hypothetical Python:

  times(10, forkIO(forever(block:
     ...
     )))
Re:Code blocks in Python by Goladus on Wednesday April 25, 2012 @11:34AM (#3889521)
That's not what codeblocks does, though. You use a with statement and a new operator (<<). Then use indentation for the blocks. It doesn't look like you're passing a block to a function. The result is quirky code that will be hard to trace and sort out if you don't already know what's happening.
Re:Code blocks in Python by Peaker on Wednesday April 25, 2012 @05:03PM (#3891076)
Oh, I thought you meant code blocks in general, not the particular OP "codeblocks"... Sorry.

I'm not sure that codeblocks actually solves the problem.