-
Rust❤️Why is char 4 bytes?코딩Coding/★Rust★기초★Syntax 2022. 9. 28. 22:16728x90
Why is char 4 bytes?
why?
I have recently picked up the language and went over the primitive data types. My curiosity got the best of me, looked up some stuff and i found out char is 4 bytes? Why? C++ and C went with 1 byte, Java went with 2 bytes and Rust goes with 4 bytes? Isn't it a little too much?
EDIT: Thank you for all the responses, You guy's explained it so well and gave me so much further information. Truly amazing community. Love you all!
https://www.reddit.com/r/rust/comments/urunhq/why_is_char_4_bytes/?utm_source=share&utm_medium=ios_app&utm_name=iossmf반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
I spent a year learning Rust to do a 5 minute PHP job (0) 2022.10.11 A quick Introduction to WASM-4 (0) 2022.10.04 Rust❤️`lifetime` problem when trying to imitate C++ code using refference (0) 2022.09.28 Rust❤️When iterating over `chars`, why is the item not `&char`? (0) 2022.09.28 Rust 1.61 한글 설명서❤️영문이 강제 번역 된러가 한글이 좀 이상하다. 감안해서 보자 (0) 2022.09.24 Rust ready 매크로에 관해서 (0) 2022.09.24 Rust❤️Why to use “mut” twice here? (0) 2022.08.28 Rust를 메인언어로 배우면 (중급이상으로 습득한 조건) 다른 언어를 빨리 배울 수 있는 이유? (2) 2022.08.15