Talk:Trabb Pardo–Knuth algorithm: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Notes: Awkward to find copies…)
(→‎Goto D: Why the goto in D language.)
Line 7: Line 7:


I'm not entirely convinced by the Python implementations, especially given that the WP samples seem to be very focused on accepting exactly 11 numbers. While yes, the greater generality of the Python code is what I'd go for as well ''normally'', this task is much more exact than that I believe. –[[User:Dkf|Donal Fellows]] 08:23, 23 May 2012 (UTC)
I'm not entirely convinced by the Python implementations, especially given that the WP samples seem to be very focused on accepting exactly 11 numbers. While yes, the greater generality of the Python code is what I'd go for as well ''normally'', this task is much more exact than that I believe. –[[User:Dkf|Donal Fellows]] 08:23, 23 May 2012 (UTC)

==Goto D==
OK Bearophile, I'll bite. ''Why use the <code>goto</code> instead of some kind of <code>do..until got_eleven_numbers</code> structured programming approach in the D language example?'' <br>:-) --[[User:Paddy3118|Paddy3118]] 05:01, 28 May 2012 (UTC)

Revision as of 05:01, 28 May 2012

Notes

I don't have access to the WP reference works and just went from the WP article and some of the examples on its external references. I hope the numbered parts to the requirements will ensure that the task can be completed by most. --Paddy3118 20:21, 22 May 2012 (UTC)

Hmm, it's an awkward one as there isn't a copy in the academic library here (the library only has partial coverage of US-published-only works). –Donal Fellows 08:29, 23 May 2012 (UTC)

Python code

I'm not entirely convinced by the Python implementations, especially given that the WP samples seem to be very focused on accepting exactly 11 numbers. While yes, the greater generality of the Python code is what I'd go for as well normally, this task is much more exact than that I believe. –Donal Fellows 08:23, 23 May 2012 (UTC)

Goto D

OK Bearophile, I'll bite. Why use the goto instead of some kind of do..until got_eleven_numbers structured programming approach in the D language example?
:-) --Paddy3118 05:01, 28 May 2012 (UTC)