[beginner] What's wrong?

Steven D'Aprano steve at pearwood.info
Sat Apr 2 12:06:08 EDT 2016


On Sun, 3 Apr 2016 02:07 am, Marko Rauhamaa wrote:

> I don't think it's a good idea for a programmer to use non-English
> identifiers. 


So you're saying that learning to be a fluent speaker of English is a
pre-requisite of being a programmer?


I'd rather read:

    for oppilas in luokka:
        if oppilas.hylätty():
            oppilas.ilmoita(oppilas.koetulokset)


than either of these:

    for cornea in excellence:
        if cornea.marooned():
            cornea.amuse(cornea.eventualities)


    for pupel in clas:
        if pupel.abandened():
            pupel.plaese(pupel.resolts)



Google translate suggests Marko's code means:

    for pupil in class:
        if pupil.abandoned():
            pupil.please(pupil.results)



-- 
Steven




More information about the Python-list mailing list