Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3170
| X-Received | by 2002:ae9:ed87:: with SMTP id c129mr1713510qkg.1.1550142665660; Thu, 14 Feb 2019 03:11:05 -0800 (PST) |
|---|---|
| X-Received | by 2002:a0d:d205:: with SMTP id u5mr27247ywd.3.1550142665531; Thu, 14 Feb 2019 03:11:05 -0800 (PST) |
| Path | csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m21no3458905qta.0!news-out.google.com!f18ni1522qto.0!nntp.google.com!m21no3458896qta.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | fr.comp.lang.python |
| Date | Thu, 14 Feb 2019 03:11:05 -0800 (PST) |
| In-Reply-To | <q41r3k$ir7$1@golgoth99.hacktruck.net> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=89.167.129.96; posting-account=wzG80QkAAAC-bmODxke1cVjpePoEKRzz |
| NNTP-Posting-Host | 89.167.129.96 |
| References | <q3cff1$1e96$1@gioia.aioe.org> <q3l5gc$c31$1@gioia.aioe.org> <q3m7od$q09$1@gioia.aioe.org> <q3m851$rjm$1@gioia.aioe.org> <q3m9r8$131c$1@gioia.aioe.org> <q3n273$ija$1@gioia.aioe.org> <gc91auFkf9jU1@mid.individual.net> <q3ok8t$1b45$1@gioia.aioe.org> <gcb6drF4f7oU1@mid.individual.net> <q3pspr$kku$1@golgoth99.hacktruck.net> <gcbl3tF7kmnU1@mid.individual.net> <q3r993$s31$1@golgoth99.hacktruck.net> <1d803779-0648-4da6-af05-f27660316602@googlegroups.com> <q3sf70$e8m$1@golgoth99.hacktruck.net> <46570ee5-10b4-47d9-9c35-4e42df9ba132@googlegroups.com> <q41r3k$ir7$1@golgoth99.hacktruck.net> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <fc6a0336-489e-4eb2-a44b-d5beaf3df59c@googlegroups.com> (permalink) |
| Subject | Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] |
| From | pehache.7@gmail.com |
| Injection-Date | Thu, 14 Feb 2019 11:11:05 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| Lines | 39 |
| Xref | csiph.com fr.comp.lang.python:3170 |
Show key headers only | View raw
Le mercredi 13 février 2019 20:27:49 UTC+1, Doug713705 a écrit : > > >> C'est toi qui t'accroches à une convention qui n'a pas à s'appliquer de > >> manière systématique. > >> > >> D'ailleurs JavaScript fait de même et d'autres langages également: > >> https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_slice_array2 > > > > Oui, d'autres langages sont dans l'erreur aussi :-) > > Ou pas, ça présente aussi des avantages. > J'ai parfois le sentiment que l'avantage principal réside dans un genre de "code social" de reconnaissance entre computer scientists, code que l'on tente de justifier après coup. Cette convention va à priori à l'encontre de notre façon naturelle d'appréhender les intervalles : tu dis à quelqu'un de "compter de 1 à 10", spontanément il va inclure 10 sans jamais se poser la question si tu entends 10 compris ou non compris. Alors en lisant les liens proposés ici j'ai vu l'argument qu'il y avait une certaine cohérence entre le fait d'exclure la borne sup et le fait numéroter à partir de 0. Soit, mais la question se déplace alors vers "pourquoi numéroter à partir de 0 plutôt que de 1 ?". Car là aussi, spontanément dans la vie courante tout le monde numérote à partir de 1. En C il y a une certaine logique à cela, vu qu'en C tout est basé sur l'arithmétique des pointeurs et des offsets. C'est une gymnastique de l'esprit un peu particulière mais qui colle avec ce qui se passe réellement à bas niveau. Mais cette logique est caduque avec les langages qui se définissent eux-mêmes comme de plus haut niveau, avec une abstraction complète par rapport au hardware. Il ne reste plus que "On fait comme en C parce que c'est cool".
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Find similar
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-10 19:07 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-10 22:58 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-11 07:27 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-11 08:39 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-11 19:16 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-12 00:30 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-12 07:17 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Jean-Baptiste Faure <jbf@no-email-on-usenet.fr> - 2019-02-13 10:32 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-14 21:36 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Jean-Baptiste Faure <jbf@no-email-on-usenet.fr> - 2019-02-15 11:47 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-13 02:29 -0800
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-13 19:38 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-13 22:01 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-14 06:17 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-14 09:16 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-11 07:46 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-11 06:57 -0800
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-11 18:34 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Lulu <lulu042@fry.fr.invalid> - 2019-02-12 09:59 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-13 03:04 -0800
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-13 19:27 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-14 09:23 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-14 10:03 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-16 14:04 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-16 20:24 +0000
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-23 15:22 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] marco@trifouillis.com - 2019-02-14 11:16 +0100
Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-14 03:11 -0800
csiph-web