2) Trad des variables dans l'exemple suivant (�590), ou pas ?
> function findSequence(goal) {
> function find(start, history) {
> if (start == goal)
> return history;
> else if (start > goal)
> return null;
> else
> return find(start + 5, "(" + history + " + 5)") ||
> find(start * 3, "(" + history + " * 3)");
> }
> return find(1, "1");
> }
>
> print(findSequence(24));
Martin :)
Personnellement, je pense qu'on devrait traduire le mot de lexique également.
C'est un mot qui a une traduction proche et claire, aucune raison de
s'en passer :)
> 2) Trad des variables dans l'exemple suivant (§590), ou pas ?
>>
>> function findSequence(goal) {
>> function find(start, history) {
>> if (start == goal)
>> return history;
>> else if (start > goal)
>> return null;
>> else
>> return find(start + 5, "(" + history + " + 5)") ||
>> find(start * 3, "(" + history + " * 3)");
>> }
>> return find(1, "1");
>> }
>>
>> print(findSequence(24));
Je vote pour « non ».
C'est petit et plein de mots « transparents ».
--
Simon Descarpentries
+33 6 76 97 02 53
http://sd12s.fdn.fr