Rust 122 式指向 - すべてが値を返す episode artwork

EPISODE · Mar 25, 2026 · 8 MIN

Rust 122 式指向 - すべてが値を返す

from 聞き流しプログラミング言語学習 · host ますたーさん

第122章へようこそ。第121章で、明示性を語りました。Rustは暗黙の動作を排除し、何が起きているかをコードに書かせる。今日のテーマは「式指向」です。多くの言語には「文」と「式」の区別があります。文は、何かを実行する命令。値を持たない。式は、何かを計算して、値を返す。条件分岐を書くとき。多くの言語では、if文は「文」です。分岐の中で変数に代入するという命令を実行する。if文そのものは値を返さない。Rustでは、ifは式です。ifそのものが値を返す。分岐の結果をそのまま変数に束縛できる。この設計は、単なる構文の好みではありません。Rustの思想と深く結びついた、意図的な選択です。

Episode metadata supplied by the publisher feed · Published Mar 25, 2026

Embed this episode

NOW PLAYING

Rust 122 式指向 - すべてが値を返す

0:00 8:59

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of 聞き流しプログラミング言語学習?

This episode is 8 minutes long.

When was this 聞き流しプログラミング言語学習 episode published?

This episode was published on March 25, 2026.

Can I download this 聞き流しプログラミング言語学習 episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!