Вам не нужны примитивные типы и коллекции

habrahabr.ru · world
Full story

The author makes the case for moving away from primitive types and collections. Using Rust examples, the piece shows how separate types can express the meaning of values and the requirements attached to them. That makes code easier to read and lets the compiler prevent swapped arguments or unchecked data from being passed around.

Расскажу, почему вам нужно отказаться от примитивных типов и коллекций. На примерах Rust покажу, как описать смысл значений и требования к ним через отдельные типы, чтобы код было проще читать, а компилятор не позволял перепутать аргументы или передать непроверенные данные. Читать далее

Read full article → Compare