Avatar
AsaiToshiya
0a2f19dc1a185792c3b0376f1d7f9971295e8932966c397935a5dddd1451a25a
📝 https://notes.asaitoshiya.com/

変数の型を明示的に指定することもできる

```

let rev: String = s.chars().rev().collect();

```

#rustlang

変なところにリプライしてた、テヘ

Replying to Avatar AsaiToshiya

NIP-93: Alternative URLs

https://github.com/nostr-protocol/nips/blob/alt-urls/93.md

代替 URL を示す `alturl` タグと `kind: 4001` のイベント

リンク切れを防ぐ

PR: https://github.com/nostr-protocol/nips/pull/898

#Nostr

ただ Nostr に持ってきただけだと何の未来も見えない

Replying to Avatar AsaiToshiya

NIP-93: Alternative URLs

https://github.com/nostr-protocol/nips/blob/alt-urls/93.md

代替 URL を示す `alturl` タグと `kind: 4001` のイベント

リンク切れを防ぐ

PR: https://github.com/nostr-protocol/nips/pull/898

#Nostr

知り合いがいない結婚式のような楽しさだった

この感じ割と好き

nostr:nevent1qqsvf5vpqegpk64jfjvv4egqm4tcwck5glf4v6446nfayppwclhqymg59cshz

Replying to Avatar AsaiToshiya

NIP-93: Alternative URLs

https://github.com/nostr-protocol/nips/blob/alt-urls/93.md

代替 URL を示す `alturl` タグと `kind: 4001` のイベント

リンク切れを防ぐ

PR: https://github.com/nostr-protocol/nips/pull/898

#Nostr

`pub`: モジュール内の要素に付けるアクセス修飾子

何も付けないとプライベート

https://doc.rust-lang.org/std/keyword.pub.html

https://doc.rust-lang.org/reference/visibility-and-privacy.html

https://doc.rust-lang.org/rust-by-example/mod/visibility.html

#rustlang

文字列を反転

```

let rev = s.chars().rev().collect::();

```

#rustlang

`Box`: データをヒープに保持

ツリーやコピーしたくない大量のデータ、トレイト オブジェクトなどに使用する

https://doc.rust-lang.org/book/ch15-01-box.html

#rustlang

キリ番ゲット

#github

Replying to Avatar AsaiToshiya

NIP-93: Alternative URLs

https://github.com/nostr-protocol/nips/blob/alt-urls/93.md

代替 URL を示す `alturl` タグと `kind: 4001` のイベント

リンク切れを防ぐ

PR: https://github.com/nostr-protocol/nips/pull/898

#Nostr

`kind: 1985` や `kind: 4001` にも似ている

`kind: 1985`: https://github.com/nostr-protocol/nips/blob/master/32.md

`kind: 4001`: https://github.com/nostr-protocol/nips/blob/alt-urls/93.md

#Nostr

NIPs のコミットのキャッチアップ

https://github.com/nostr-protocol/nips/commits/master?since=2023-11-25&until=2023-11-28

* NIP-89: Recommended Application Handlers

* `client` タグの要素が変更された (`["client", "My Client", "31990:app1-pubkey:", "wss://relay1"]`)

#キャッチアップ #nips

Some: タプルの構造体で Option の列挙子

#rustlang

Option: nullable

#rustlang