Jai
@jaibhavaya.bsky.social did:plc:nbybf2vo5dw7jqrgrutxqttu
Software Engineer of about about a decade. Polyglot that loves learning new languages. Current obsessions: Rust, Elixir, OCaml
Sur Bluesky depuis le
- Abonnés
- 14
- Abonnements
- 37
- Posts
- 34
- Jours dans les classements
- 0
Résumé
Jai (@jaibhavaya.bsky.social) est sur Bluesky depuis le 5 avril 2025. Le compte a 14 abonnés, suit 37 comptes et a publié 34 posts.
Présence dans les classements
Les meilleurs jours où les posts de ce compte sont entrés dans le top quotidien de Debya.
Ce compte n’est encore apparu dans aucun classement quotidien.
Posts aimés récemment
J’aime publics du réseau Bluesky.
I believe the Americans will greet Nintendo as liberators
Voir le post1️⃣ What is 'static lifetime? It's the longest possible lifetime in Rust, meaning that the data it refers to will live for the entire duration of the program. This is often used for string literals or global constants, it can be used as a trait bound, or for static fields in structs.
Voir le post2️⃣ Example with static field Let's say we are building our univesity management database, and we have the name of the univesity which will never change. This is a perfect use case for 'static lifetime
Voir le postThis tells the compiler that the name field will always point to a string that lives for the entire duration of the program, so we can safely use it without worrying about lifetimes. Let's see how we can initialise it
Voir le post🎭 Static Lifetime in #rustlang Lifetimes in general can be tricky for anyone learning rust, and require a lot of different attempts and practice to understand well and get right. One common lifetime is the 'static lifetime, but what does it mean? Let's figure out the details 🧵👇
Voir le post
Comptes bloqués
Sur Bluesky, les blocages sont publics.
Ce compte ne bloque personne.