Hacker News new | ask | show | jobs
by wz1000 4037 days ago
> "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)))
1 comments

Was there something factually incorrect in my comment?
Was there something relevant in your comment?
I was pointing out that if you can consider sizeof a function, you can consider return one too.