Re: Comment by Joel Spolsky
From: Andreas Leitgeb (avl_at_gamma.logic.tuwien.ac.at)
Date: 05/05/04
- Next message: Alexander: "I explain!!! Exec ever put down my computer"
- Previous message: Michael Schlenker: "Re: http library"
- In reply to: Cameron Laird: "Re: Comment by Joel Spolsky"
- Next in thread: Darren New: "Re: Comment by Joel Spolsky"
- Reply: Darren New: "Re: Comment by Joel Spolsky"
- Reply: John Seal: "Re: Comment by Joel Spolsky"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 05 May 2004 17:12:24 GMT
Cameron Laird <claird@lairds.com> wrote:
> I have yet another reading of this. First, I think Joel doesn't
> know Tcl (or Python, notably) well; I *think* he gets what he
> wants from
> return [list $errorflag $result]
> but he doesn't realize how idiomatic this is in Tcl (among other
> languages).
Still, I wonder how Joel meant that this would be done in ML or haskell.
I only know a little ocaml (whose last two letters come from ML), which
also has some touch towards exceptions. If Joel was indeed talking about
composite return-values, then Tcl would surely do it, but I think to
remember about ocaml that it made it somewhat easier to match such a
combined result against some patterns. (kind of like lassign and a
multi-variable- switch in one) And now please don't suggest anything
even remotely like: switch -glob $pair { {0 *} {...} {1 *} {...}}
Anyway, if original-poster's intention was anything else but
[return -code ...], then the man-page of [return] surely
wouldn't be the most enlightening intro for Joel.
- Next message: Alexander: "I explain!!! Exec ever put down my computer"
- Previous message: Michael Schlenker: "Re: http library"
- In reply to: Cameron Laird: "Re: Comment by Joel Spolsky"
- Next in thread: Darren New: "Re: Comment by Joel Spolsky"
- Reply: Darren New: "Re: Comment by Joel Spolsky"
- Reply: John Seal: "Re: Comment by Joel Spolsky"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|