Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Go 1.22で追加予定 だった zeroの紹介 Go Conference mini
Search
sivchari
December 01, 2023
Programming
0
340
Go 1.22で追加予定 だった zeroの紹介 Go Conference mini
sivchari
December 01, 2023
Tweet
Share
More Decks by sivchari
See All by sivchari
What's GOCACHEPROG ?
sivchari
1
390
gh_extensionsによる快適なOSS生活.pdf
sivchari
0
31
Visualization Go scheduler by gosched-simulator
sivchari
1
440
protoc pluginのはじめかた
sivchari
0
33
What's context package
sivchari
0
27
Dive into arena package ~ Go 1.20 release party ~
sivchari
0
72
GopherCon 2023 recap
sivchari
0
36
Go 1.22 range over func/range over int
sivchari
0
69
Deep dive into runtime features provided by Go1.22
sivchari
0
31
Other Decks in Programming
See All in Programming
SwiftDataを使って10万件のデータを読み書きする
akidon0000
0
150
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
チームの境界をブチ抜いていけ
tokai235
0
180
CSC509 Lecture 06
javiergs
PRO
0
260
Railsだからできる 例外業務に禍根を残さない 設定設計パターン
ei_ei_eiichi
0
930
品質ワークショップをやってみた
nealle
0
500
Le côté obscur des IA génératives
pascallemerrer
0
150
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
0
300
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
210
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
420
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
410
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
170
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Documentation Writing (for coders)
carmenintech
75
5.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
870
Raft: Consensus for Rubyists
vanstee
140
7.1k
Thoughts on Productivity
jonyablonski
70
4.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
910
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Transcript
Go 1.22で追加予定 だった zeroの紹介 Go Conference mini ~ 2023 WINTER
in KYOTO ~ The Go gopher was designed by Renee French.
自己紹介 名前 • 渋谷拓真 ◦ X/GitHub: @sivchari • 所属 ◦
CyberAgent ◦ CIU ◦ 22卒 ◦ Next Experts
untyped built in zero • 61372 でdiscussionsが開始された • CL 50995
で設計当初のSpecがみれる ◦ 510541 (range over func/int)は入りましたね
untyped built in zero • short zero (0, “”, nil)ではない場合に使用することができる
func _0() time.Time { return zero }
sivchari thinks • Spec的にはnilと同じだしコンパイラーまわりいじるんだろうな! ◦ 便利そう!!! ◦ 楽しみ!!! ◦ わーい!!!
• Acceptedされた!!
GopherConへ • rscがKeynoteにいることからGo Teamのブースとかにいるかも! • いたので事前に気になっていたzeroについて質問してみた ◦ rscへの質問まとめ ◦ short
zeroの仕様的にzeroって名前混乱するけどどう思う? ▪ 混乱する ▪ だからAccepted->Declinedしたよ え????
GopherConへ • されてた 😇
納得していない人も • Acceptedされたのに戻すってどういうこと?という意見 • 64174 のproposalを新しく立てた人も ◦ issueで改めてrscがコメントしている ▪ 詳細を詰める時間がないので取り下げた
• やらないという意味でのDeclinedではない ▪ 現状自前実装でzeroと同じことはできる
まとめ • AcceptedからDeclinedされる珍しいケースをrscからきくとは思わなかった • 名前は微妙だがいいbuiltinだなと思っていたので残念 • Acceptedされても追跡しておくことの重要性を知った