Gary Willoughby: "Why Go's design is a disservice to intelligent programmers"

Russel Winder via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Mar 30 11:41:04 PDT 2015


On Mon, 2015-03-30 at 11:19 -0700, Walter Bright via Digitalmars-d-announce wrote:
> […]
> 
> My brain still thinks in terms of loops.

The excellent influence of functional programming on imperative 
programming is implicit iteration and higher-order functions.

Any explicit for/while loop in a modern imperative language code 
should *necessarily* involve a side-effect or it is coded wrongly. 
Even then it can almost certainly be recast to preserve the side-
effect and remove the loop – unless you are implementing the implicit 
iteration function.

This has nothing to do with tail recursion optimization and all that 
Lambda Calculus stuff, this is to do with correct levels of 
abstraction that allow the tool chain to maximize support for the 
programmer.

Java programmers are having to come to terms with this. Python 
programmers sort of have, except that BDFL has failed to accept the 
correct end point and still likes loops. Scala has done it all wrong. 
(Further opinions available on request :-)

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20150330/798ba97f/attachment-0001.sig>


More information about the Digitalmars-d-announce mailing list