---
title: "Discussion on \"Primitive Types: The \"Core Building Blocks\"\" | Hashnode"
description: "Discussion on \"Primitive Types: The \"Core Building Blocks\"\". In JavaScript, you have one \"number\" type and one \"string\" type. In Rust, you have Scalar and Compound primitives that define the physical shape and size of your data in memory. \nThink of Rust Primitives as a Set of Specialized Tools—each one optimiz..."
url: "https://hashnode.com/posts/primitive-types-the-core-building-blocks/69d4dfd74650dac7a91de3a9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Primitive Types: The "Core Building Blocks"](https://yafi.hashnode.dev/primitive-types-the-core-building-blocks?utm_source=hashnode&utm_medium=feed)

In JavaScript, you have one "number" type and one "string" type. In Rust, you have Scalar and Compound primitives that define the physical shape and size of your data in memory. Think of Rust Primitives as a Set of Specialized Tools—each one optimiz...

Apr 7 · 2 min read · yafi.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#primitives](https://hashnode.com/tag/primitives)
-   [#scalar](https://hashnode.com/tag/scalar)
-   [#compound](https://hashnode.com/tag/compound)
-   [#integers](https://hashnode.com/tag/integers)

## Written by

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim)

@yafialhakim · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@yafialhakim)

Frontend Engineer @MySkill.id

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
