buttercat1791 on Nostr: I've been starting to read up on Rust, and I didn't realize until recently that it ...
I've been starting to read up on Rust, and I didn't realize until recently that it doesn't have classes, just structs.
Other languages use classes/objects for the same concept you're describing with Rust's structs.
Published at
2025-02-15 02:24:51Event JSON
{
"id": "5fabc8aaf23337b9a90795be56935548b4dbb887f79b258d16263c69b10ce54b",
"pubkey": "70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9",
"created_at": 1739586291,
"kind": 1,
"tags": [
[
"e",
"9e0a317aad7be555a35bd1c12e16a2bad8ffee7134f98e6bbc4b5598bee7a493",
"",
"root"
],
[
"e",
"4aa7f63e5819d8e0c1fc7f10b1cddbd1619a8c4f5b36d1390863f09d97b3a7a4"
],
[
"e",
"cf6a77010a459de15719c032055cb3856e5087a75b0f306624e63df89302888e",
"",
"reply"
],
[
"p",
"bf41becc8831e7315d9a99f83f11690999605fbb59474234f091a61613dc5991"
],
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
]
],
"content": "I've been starting to read up on Rust, and I didn't realize until recently that it doesn't have classes, just structs.\n\nOther languages use classes/objects for the same concept you're describing with Rust's structs.",
"sig": "e0fcae5b325a39d09f011cdfaa5a1cd7d81acfb0a0ba6a401a34179fa7fb93ddbc3e73004688ad611dca5d9fa051585f8f28928397898f158ef7778fc4fbfb97"
}