Zum Inhalt springen

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

Bei Bluesky seit

Follower
14
Folgt
37
Posts
34
Tage in Ranglisten
0

Zusammenfassung

Jai (@jaibhavaya.bsky.social) ist seit 5 April 2025 auf Bluesky. Das Konto hat 14 Follower, folgt 37 Konten und hat 34 Posts veröffentlicht.

Ranglisten-Platzierungen

Die besten Tage, an denen Posts dieses Kontos in Debyas Tagesliste kamen.

Dieses Konto war noch in keiner Tagesrangliste.

Zuletzt gelikte Posts

Öffentliche Likes aus dem Bluesky-Netzwerk.

  • Matt Novak@paleofuture.bsky.social

    I believe the Americans will greet Nintendo as liberators

    Post anzeigen
  • Olivia 🦀@iolivia.me

    1️⃣ 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.

    Post anzeigen
  • Olivia 🦀@iolivia.me

    2️⃣ 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

    Post anzeigen
  • Olivia 🦀@iolivia.me

    This 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

    Post anzeigen
  • Olivia 🦀@iolivia.me

    🎭 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 🧵👇

    Post anzeigen

Melde dich an, um mehr zu sehen

Blockierte Konten

Blockierungen sind auf Bluesky öffentlich.

Dieses Konto blockiert niemanden.