Working with Option in Rust

Unlike many languages, Optional type is a fundamental mechanism in Rust development - it's behind its null safe characteristic. But beyond working as an Optional pointer, the Option type has some very useful features. Option is an enum, in Rust this means we have the power of algebraic enums, which allows carrying a specific value. Option is an enum of varieties None and Some(T). Many of its operations have a functional format - which makes a callback through closure, being quite efficient as it's invoked only when necessary. Let's explore this and much more!

Ler mais β†’

Why Rust? Or... is it possible to use Rust with other languages?

Many developers study Rust, experiment with it, and fall in love, but in practice they don't use it professionally. The famous annual Stack Overflow survey proves this - there's a high percentage in the "most loved language" category, but low when compared to actual usage.

Being a relatively new and less popular language, Rust ends up facing some barriers to wider adoption. In this article, I'd like to share my experience in reconciling Rust and using it at work alongside other languages.

Ler mais β†’