知識冒險者

immutability

此標籤下有 3 條筆記。

  • 2026年9月22日

    C++ 的 const 是深層不可變,JS 的 const 只防重新賦值

    • cpp
    • immutability
  • 2026年9月22日

    constexpr 是編譯期常數,const 只是執行期唯讀

    • cpp
    • immutability
  • 2026年9月22日

    指標的 const 位置決定是指標不可變還是內容不可變

    • cpp
    • immutability
    • pointer

Created with Quartz v5.0.0 © 2026