Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Panic » ?

Definition 7.8 University Computer Science — Year 2 · Chapitre 7 — Enums, Pattern Matching and Error Handling

A panic stops the current thread on a condition the program declares impossible: an index out of bounds, an unwrap of None or of Err, an explicit panic!. The values of the thread are dropped, a message gives the place and the cause, and if the thread is the main one the process exits with status 101.

Lire dans le chapitre →