Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions rouille_proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,58 @@ rouille_compilogenese::rouille! {
"Ponctuation" => "Punct",
"Litéral" => "Literal",
"macro_procédurale" => "proc_macro",
"LectureBufferisée" => "BufRead",
"Lecture" => "Read",
"Écriture" => "Write",
"entrée_sortie" => "io",
"entrée" => "stdin",
"sortie" => "stdout",
"lire_ligne" => "read_line",
"écrire_ligne" => "write_line",
"écrire" => "write",
"est_vide" => "is_empty",
"est" => "is",
"verrouiller" => "lock",
"octets" => "bytes",
"chaîne" => "str",
"lire_exactement" => "read_exact",
"lire_jusqu'à" => "read_until",
"sépare" => "split",
"en_tant_que" => "as",
"Entier" => "Integer",
"ensuite" => "then",
"ensuite_valeur" => "then_some",
"déballer_ou" => "unwrap_or",
"déballer_ou_avec" => "unwrap_or_else",
"en" => "into",
"depuis_chaîne" => "from_str",
"Depuis" => "From",
"bien" => "ok",
"bien_ou" => "ok_or",
"bien_ou_avec" => "ok_or_else",
"en_tant_que_déréférencé" => "as_deref",
"en_tant_que_déréférencé_mutable" => "as_mut_deref",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mais.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas votre commentaire. Pouvez vous précisez ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aucune référence à ce nom n'est trouvable dans la bibliothèque standard Rouille.

"itérable" => "iter",
"itérable_mut" => "iter_mut",
"énumérer" => "enumerate",
"filtre" => "filter",
"filtre_applique" => "filter_map",
"applique" => "map",
"applique_ou" => "map_or",
"applique_ou_avec" => "map_or_else",
"pour_chaque" => "for_each",
"essayer_pour_chaque" => "try_for_each",
"applatir" => "flatten",
"compter" => "count",
"trouve" => "find",
"trouve_en_appliquant" => "find_map",
"tous" => "all",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nous sommes en 2024, pensez printemps les ami·es.

Suggested change
"tous" => "all",
"tous·tes" => "all",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je propose plutot d'utiliser, tous ou toutes separement pusique cette notation est complexe a utiliser sur un ordinateur

"certains" => "any",
"récuperer" => "collect",
"copié" => "copied",
"cloné" => "cloned",
"Copiable" => "Copy",
"Clonable" => "Clone",
_ => &identifiant_chaîne,
};

Expand Down