News for hackers. Stuff that matters.
Re:Humans should think of sizeof() as a function, says Linus... by wz1000 on Saturday May 30, 2015 @08:46AM (#9629985)
> "return()" is in no way a function.

Ah, but in Haskell, `return` is a function, though it shares only a few similarities with with its counterpart in C-like languages.

However, when using continuations or a continuation passing style, the continuation is a function that behaves almost exactly like traditional return when called!

    (define (multiply x y return)
      (return (* x y)))
Re:Humans should think of sizeof() as a function, says Linus... by wz1000 on Saturday May 30, 2015 @11:43AM (#9630519)
Was there something factually incorrect in my comment?
Re:Humans should think of sizeof() as a function, says Linus... by stonogo on Saturday May 30, 2015 @11:57AM (#9630564)
Was there something relevant in your comment?
Re:Humans should think of sizeof() as a function, says Linus... by wz1000 on Saturday May 30, 2015 @12:20PM (#9630633)
I was pointing out that if you can consider sizeof a function, you can consider return one too.