Tagged articles
4 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 22, 2026 · Fundamentals

What is nullptr and why should it replace NULL in modern C++?

The article explains that NULL is a macro equal to integer 0, which can cause type‑mixing errors in overload resolution and template deduction, while the C++11 keyword nullptr has its own std::nullptr_t type, providing strict pointer semantics, eliminating overload ambiguities, improving safety, readability, and integration with modern C++ features.

CNULLfunction overload
0 likes · 24 min read
What is nullptr and why should it replace NULL in modern C++?
IT Services Circle
IT Services Circle
Jan 1, 2023 · Frontend Development

Implementing a Zip Function in TypeScript with Advanced Type Inference

This article walks through building a zip function that merges two arrays, adding basic TypeScript signatures, then demonstrates advanced generic type programming to infer exact tuple return types, handling readonly tuples, mutable mappings, and function overloads for precise type safety.

Generic TypesMutableType Inference
0 likes · 8 min read
Implementing a Zip Function in TypeScript with Advanced Type Inference
IT Services Circle
IT Services Circle
Apr 14, 2022 · Frontend Development

Dynamic Generation of TypeScript Function Overloads Using Union‑to‑Intersection Types

This article explains how TypeScript function overloads can be written in three ways, why manual overloads become cumbersome, and demonstrates a type‑programming technique that converts a union of signatures into an intersection to dynamically generate overload definitions using advanced conditional types.

TypeScriptUnion to Intersectionadvanced types
0 likes · 7 min read
Dynamic Generation of TypeScript Function Overloads Using Union‑to‑Intersection Types