Luyện nói tiếng Anh bằng Shadowing qua video: Rust just introduced a new "never" type

Chọn chế độ luyện tập

Mỗi chế độ mở một phòng luyện tập toàn màn hình.

76 câu
Nếu các câu quá ngắn hoặc quá dài, hãy bấm Edit để chỉnh sửa.
1
Rust just stabilized one of the strangest types in the entire language.
2
It's a type that has zero possible values yet can magically turn into any other type you want.
3
It's called the never type and it's written with a single exclamation mark.
4
The crazy part is it's been sitting half finished in the language for 10 years.
5
There have been 5 separate failed attempts to ship it and it finally just got stabilized.
6
So let me show you what it actually is, how the Rust team was able to ship it,
7
and whether it really matters for the code you write.
8
Okay, so there's this really good talk about the NeverType from Waffle at RustNL, and it goes over the entire story.
9
The first question is, what is the NeverType?
10
The NeverType represents a computation that will never produce a value.
11
It's built directly into the language, meaning it's not defined in the Rust standard library, and it's what's called an uninhibited type,
12
meaning it does not have any values, so you cannot create it.
13
So it's used for code that is unreachable.
14
For example, expressions like return, infinite loops, or panics.
15
Okay, so to concretely see why the never type is useful, let's look at the documentation for the never type.
16
Here's the first realistic usage of the never type that we see.
17
We have a variable called num, which is an unsigned 32 -bit integer.
18
And on the other side of the equals sign, we have a match expression.
19
We call get a number, which returns an optional, and if we get the some variant, then we simply return the number.
20
But if we get the none variant, then we call break.
21
Calling break here breaks out of the outer loop, which this code is in, and never returns a value.
22
Since break doesn't return a value, this is a case where we would want to use the never type.
23
So the value break produces is the never type.
24
But here we can see that the none variable expects a U32 to be returned.
25
So in order to make this work, expressions of type never will coerce to any other type.
26
In this case, the never type produced by break will coerce to an unsigned 32 -bit integer, which will allow this code to compile.
27
The never type is also really useful in generic code.
28
In this case, if we're implementing from str for the string type, we know that the conversion will never fail.
29
So we want this error type to be the never type.
30
In other words, this from str function should return a result where self is going to be string
31
and error is going to be the never type.
32
And that allows us to write code like this, where we can call from str, pass in a string slice,
33
and expect that we'll always get back an OK variant.
34
The compiler won't force us to handle the error variant because that code is unreachable.
35
Now, we can also do the opposite.
36
Instead of defining a result type where the error variant is the never type,
37
we can define a result type where the OK variant is the never type.
38
And this would be useful for code like this.
39
In this case, we have a function which runs an infinite loop.
40
Inside of that loop, we get HTTP requests and handle them.
41
And because this is an infinite loop, we should only ever be returning an error variant if some type of connection issue happens.
42
Now, the never type has been part of the Rust language for a long time.
43
But it wasn't something you could write yourself in your own Rust code.
44
The issue tracking this feature to be able to use the never type in your own
45
Rust code has been open since 2016.
46
Now, the reason it took so long to stabilize the never type is because of edge cases.
47
Making this work for 90 % of code was trivial, but the last 10 % was impossibly hard.
48
This is because for some fundamental features like the never type, stabilizing it requires introducing breaking changes.
49
And handling those breaking changes is quite difficult.
50
Specifically, the Rust team wanted to update the infallible type.
51
The infallible type was an empty enum, and it served a similar purpose to the never type before it stabilized.
52
What the Rust team wanted to do was update this enum to be a type alias for the NeverType, but that broke a bunch of code.
53
So the solution they eventually came to was to do a staged rollout.
54
First it was introduced as a warning, and then in December 2025 it would error by default.
55
The next step was to implement the change in a Rust edition, which is the place where breaking changes are introduced,
56
and finally the third step was to make this change in all editions.
57
Now that third step is introducing a breaking change in all editions, so there were codebases that broke because of this change.
58
Luckily, the Rust team ran tests on all publicly available
59
Rust crates and then reached out to crate maintainers and helped them fix the issues.
60
So one lesson to learn here is that stabilizing features is genuinely difficult.
61
But I'm really glad the Rust team has closed this 10 -year -old hole in the type system.
62
If you're writing application -level
63
Rust, this change will likely not affect you.
64
But if you're writing
65
Rust libraries and you're using the infallible type, which now falls back to the never type,
66
type, then this change is definitely something to be aware of.
67
And no matter what type of Rust code you're writing,
68
I think we should all be grateful to the Rust maintainers for continuing to push these fundamental features over the finish line.
69
And if you yourself are interested in writing production -grade
70
Rust, check out our Rust Live Accelerator.
71
It's our tailored mentorship program where we help developers go beyond YouTube videos, write production -grade
72
Rust systems, and land their first Rust job.
73
You can join the waylist for our next cohort by heading over to letsgetrusty .com slash join
74
or by clicking the link in the pinned comment below.
75
When you join the waylist, we'll also send you our Rust Developer Roadmap as a small gift.
76
So tap the link, join the waylist, and I'll talk to you very soon.

Tải Ứng Dụng

Mọi thứ bạn cần để nói trôi chảy

Chấm điểm AIChấm từng câu nói
Luyện IPAThành thạo mọi âm
Từ vựngMở rộng vốn từ
Game Từ vựngHọc qua chơi
FOR YOU

Video gợi ý

Từ vựng và ghi chú luyện nói cho bài học này

Bài luyện nói này dựa trên video “Rust just introduced a new "never" type”. Những từ được nhắc lại nhiều nhất trong bài: type, Rust, code, variant, error. Video này có 76 câu và 1064 từ để luyện shadowing. Phần lời nói dài 5:25. Người nói nói nhanh, khoảng 197 từ mỗi phút, nên sẽ có nhiều chỗ nối âm và nuốt âm. 84% số từ nằm trong 3.000 từ tiếng Anh thông dụng nhất; phần còn lại nên xem trước khi luyện.

Từ vựng quan trọng trong video

15 từ đáng học trong video, kèm phiên âm và nghĩa:

TừPhiên âmNghĩa
variant danh từ/ˈvæɹi.ənt/phương án, biến thể
loop danh từ/luːp/đường nhánh, thòng lọng
introduce động từ/ˌɪntɹəˈdus/giới thiệu
string danh từ/stɹɪŋ/chuỗi
infinite tính từ/ˈɪnfɪnɪt/vô bờ, bất tận
implement động từ/ˈɪmpləmənt/thực hiện, chấp hành
lesson danh từ/ˈlɛs.ən/bài, bài học
grateful tính từ/ˈɡɹeɪtf(ə)l/biết ơn
default danh từ/dɪˈfɔlt/mặc định
pin danh từ/pɪn/ghim, đinh ghim
panic danh từ/ˈpænɪk/hốt hoảng
developer danh từ/dɪˈvɛləpɚ/nhà phát triển
slice danh từ/slaɪs/lát mỏng, miếng mỏng
luckily trạng từ/ˈlʌk.ɪ.li/may, may mắn
tailor danh từ/ˈteɪlɚ/thợ may

Cụm động từ bạn sẽ nghe

TừNghĩa
check out động từtính tiền, trả phòng

Ngữ pháp trong video

Những cấu trúc người nói dùng nhiều nhất, kèm đúng cụm từ trong video:

Cấu trúcTrong video
Thì hiện tại hoàn thành have/has + quá khứ phân từ — việc đã xảy ra nhưng còn liên quan đến hiện tạihave been · has been · has closed
Câu bị động be + quá khứ phân từ — nhấn vào việc xảy ra, không phải người làmbe returned · was introduced · are introduced
Mệnh đề quan hệ who / which + mệnh đề — thêm thông tin về người hoặc vậtnum, which is · integer, which will · edition, which is

Phát âm cần chú ý

Người nói dùng 12 dạng rút gọn, ví dụ you're, we'll, doesn't. Hãy nói theo dạng ngắn đúng như bạn nghe.

  • Âm “sh” và “zh”: conversion /kənˈvɝʒən/, documentation /ˌdɑkjəmɛnˈteɪʃən/, optional /ˈɑp.ʃə.nəl/, computation /ˌkɑmpjʊˈteɪʃn̩/, exclamation /ˌɛkskləˈmeɪʃn̩/
  • Từ dài — đặt trọng âm cho đúng: fundamental /ˌfʌn.dəˈmɛn.təl/, developer /dɪˈvɛləpɚ/, genuinely /ˈd͡ʒɛn.ju.ɪn.li/, documentation /ˌdɑkjəmɛnˈteɪʃən/, infallible /ɪnˈfælɪbəl/

Những âm người Việt thường gặp khó:

  • Cụm phụ âm cuối — đọc đủ từng âm, đừng nuốt âm cuối: variant /ˈvæɹi.ənt/, implement /ˈɪmpləmənt/, default /dɪˈfɔlt/, cohort /ˈkoʊ̯ˌhɔɹt/
  • Âm /tʃ/, /dʒ/ và /ʒ/ — tiếng Việt không có, đừng đọc thành “ch” hay “gi”: conversion /kənˈvɝʒən/, usage /ˈjuːsɪd͡ʒ/, generic /dʒɪˈnɛɹ.ɪk/, genuinely /ˈd͡ʒɛn.ju.ɪn.li/, integer /ˈɪn.tɪ.d͡ʒə(ɹ)/
  • Âm /æ/ — mở miệng rộng hơn âm “e”: variant /ˈvæɹi.ənt/, variable [ˈvæɹ.i.ə.bl̩], panic /ˈpænɪk/, infallible /ɪnˈfælɪbəl/, magically /ˈmæd͡ʒ.ɪ.kli/

Cách luyện với video này

  1. Nghe hết video một lần, chưa cần nói, và ghi lại những từ bạn chưa biết.
  2. Bắt đầu ở tốc độ 0,75×, nói đuổi từng câu, rồi quay lại tốc độ bình thường khi đã quen.
  3. Ghi âm giọng mình rồi so với bản gốc, chú ý các từ như variant, loop, introduce.

Phương Pháp Shadowing Là Gì?

Shadowing là kỹ thuật học ngôn ngữ có cơ sở khoa học, ban đầu được phát triển cho chương trình đào tạo phiên dịch viên chuyên nghiệp và được phổ biến rộng rãi bởi nhà đa ngôn ngữ học Dr. Alexander Arguelles. Nguyên lý cốt lõi đơn giản nhưng cực kỳ hiệu quả: bạn nghe tiếng Anh của người bản xứ và lặp lại to ngay lập tức — như một "cái bóng" (shadow) đuổi theo người nói với độ trễ chỉ 1–2 giây. Khác với luyện ngữ pháp hay học từ vựng bị động, Shadowing buộc não bộ và cơ miệng phải đồng thời xử lý và tái tạo ngôn ngữ thực tế. Các nghiên cứu khoa học xác nhận phương pháp này cải thiện đáng kể phát âm, ngữ điệu, nhịp điệu, nối âm, kỹ năng nghe và độ lưu loát khi nói — đặc biệt hiệu quả cho người luyện IELTS Speaking và muốn giao tiếp tiếng Anh tự nhiên như người bản ngữ.

Phương pháp shadowing: đọc hướng dẫn từng bước đầy đủ →