コーディー
641 posts


型の一種に過ぎないポインターの構文以上にまずかったのは変数名の前に型名を書く記法。Go も Swift も Rust も前後を入れ替えて一挙にすっきりした。21世紀の静的言語はみんな型名が後置

@straceX I prefer this over RAII and over Zig's defer. That being said, the order is reversed, ideally you deinitialize in the reverse other you initialzied, in case there are ownership dependencies.

日本企業のシステムのUIは煩雑だし、複雑だし、見た目もカスだけど、慣れた瞬間にこれ以外が使いにくくて仕方なくなる謎の魅力がある タバコみたいなものだと思ってる

something about c that took me way too long to understand: arrays are not pointers. they just decay into one.

これみると、やっぱりC言語の、特にポインタ型に関する構文がまずかったんだよなあとしか思えないですよね。

型ドリル始まったんだけどwwwww

ポインタ1個だけで文字列を持ち回れるCのメリットは、常に strlen しないといけないデメリットでもあるので、パフォーマンスを気にするソフトウェアではだいたいこの実装しちゃう。

@Adriksh JetBrains didn't lose because VS Code is better. They lost because VS Code is free, works for every language, and Microsoft is behind it. When that's your competition, being the best tool doesn't matter much

小売やってるとわかるのだが、年々人は目的で場所に行くようになってきているので、無理に回遊性狙って移動距離稼ぎを狙うと面倒になってその場所自体に人は行かなくなる。

int arr[10]; int* p = arr; // 配列はポインタ ヨシッ printf("%zu\n", sizeof(arr)); // 4x10 で 40 ヨシッ printf("%zu\n", sizeof(p)); // 8 !!