Re: Comment by Joel Spolsky

From: Andreas Leitgeb (avl_at_gamma.logic.tuwien.ac.at)
Date: 05/05/04


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.



Relevant Pages

  • Re: What are you (and your owners) currently reading?
    ... Haunted House Stories edited by Peter Haining ... Prince Caspian in the Chromicles of Narnia series by C. S. Lewis ... So What are you reading? ... I got up to turn it off, only to hear Joel shout 'Oy'. ...
    (rec.pets.cats.anecdotes)
  • Re: MIKE, I am seeking feedback from a few other groups ....
    ... The most effective way to deal with Joel is to repost his spams to ... dentalcom.net as he downloads this stuff on his TREO and that costs real ... > that I am not reading any of it. ... >> Dentists deal with oral cancer. ...
    (sci.med.dentistry)
  • Re: For JW
    ... That is exactly what I did, as you can see from reading my post. ... Joel ... > Here is a link to a unique problem/solution when working with ZoneAlarm ... > Are you speaking of the latest version of Zone Alarm, if so, what is the ...
    (microsoft.public.windowsxp.messenger)
  • Re: Dental Blogs
    ... are reading the html version of smd there. ... Joel ...
    (sci.med.dentistry)
  • Re: MIKE, I am seeking feedback from a few other groups ....
    ... I've got to agree with Steve, ... "Joel, help is available" ... | that I am not reading any of it. ... |> Dentists deal with oral cancer. ...
    (sci.med.dentistry)