Skip to content

Memory Management #78

@0xGeorgii

Description

@0xGeorgii

Comparing the language design of C, C++, Rust, and Zig, there are some merits and demerits. I want to find a golden standard for Inference. C/Zig uses pointers * and C++/Rust use both pointers * and references &. Since university, when I studied C and then C++, references sounded a bit unnatural, and I didn't see much value in introducing this concept. Simply because this concept somehow adds an additional layer of unneeded abstraction to the memory access. But the problem with raw pointers (C style) is that they enable direct, unchecked access to the memory, which is error-prone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    draftNow ready for taking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions