Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] "Go Considered Harmful"
- Date: Sat, 5 Sep 2020 00:48:52 +0900
- From: "Curt J. Sampson" <cjs@example.com>
- Subject: Re: [tlug] "Go Considered Harmful"
- References: <24400.24945.605926.15911@turnbull.sk.tsukuba.ac.jp> <24400.24150.236422.455217@turnbull.sk.tsukuba.ac.jp> <20200903052509.xmijwpo2f5jbmjqs@iambic.cynic.net> <24400.57077.881966.886236@turnbull.sk.tsukuba.ac.jp> <20200904013221.th5wjpe2azohm6ga@iambic.cynic.net> <24401.64562.854427.483483@turnbull.sk.tsukuba.ac.jp>
- User-agent: NeoMutt/20170113 (1.7.2)
On 2020-09-04 17:34 +0900 (Fri), Stephen J. Turnbull wrote: > Curt J. Sampson writes: > > > how to convert non-tail-call recursive functions into tail call > > form[?] It's not difficult to do, ... but is it really essential > > complexity? Or is dealing with that something that the language > > system should do? > > Of course it depends. Language implementers need to know how to do > that. Application implementers would be fine with "recursive calls > are optimized and compiled efficiently enough that you should rarely > if ever need to convert them to another form". But it's not obvious > to me that that's true. No, it's not obvious to me either. What's also not obvious is whether or not it _could_ be true and, if so, whether or it there's something else in the process of learning about accumulators and suchlike that developers should learn early anyway. > Note that "simple" is carrying a heavy load here. In a language with > side effects recursion suffers from the I = PLAY(0) problem. Can you give an example? > Here's an hypothesis for you: Humans need ambiguity and therefore > prefer 'for'. ;-) Well, yes, I do understand that. My hypothesis is that ambiguity is desirable to many people because it makes it easier to pretend that their code says and does what they hope it says and days, especially when they don't have a very clear idea of what that is. cjs -- Curt J. Sampson <cjs@example.com> +81 90 7737 2974 To iterate is human, to recurse divine. - L Peter Deutsch
- References:
- Re: [tlug] "Go Considered Harmful"
- From: Stephen J. Turnbull
- Re: [tlug] "Go Considered Harmful"
- From: Stephen J. Turnbull
- Re: [tlug] "Go Considered Harmful"
- From: Curt J. Sampson
- Re: [tlug] "Go Considered Harmful"
- From: Stephen J. Turnbull
- Re: [tlug] "Go Considered Harmful"
- From: Curt J. Sampson
- Re: [tlug] "Go Considered Harmful"
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Fishing for USB linux suggestions
- Next by Date: Re: [tlug] Constructed state, unit tests and REPLs
- Previous by thread: Re: [tlug] "Go Considered Harmful"
- Next by thread: Re: [tlug] "Go Considered Harmful"
- Index(es):