Introduction
Are you bored learning the old programming languages Java, C++, etc.? Want to learn something new?
This article is focused on the new programming language Carbon. Carbon language is an experimental language. It is a general-purpose and open-source project. It was initiated by Google. It was first introduced by Chandler Carruth on 19 July 2022. He is a software engineer at Google. It was in Toronto at the CppNorth conference. Carbon language fixed many shortcomings of C++. It has many similarities to the features set of C++. It is the successor of C++. This language aims to make two-way interoperability and readability.
Now, let's dive into the article to learn about concepts of namespaces and aliasing in detail.

Namespaces
A namespace declaration is a name that can be used as a prefix for names declared later. Other namespace members are considered when defining a member of that namespace. They can be found without the namespace prefix using the name lookup.
Namespaces give entities named paths. Nested namespaces are also possible. The same namespace may contain contributions from many libraries. In actuality, packages might have namespaces like Testing that contain entities that profit from a private place yet are found in numerous libraries.
The syntax of the namespace keyword can be described as a given regular expression:
namespace NAME_PATH;
Namespace entity is declared by namespace keyword. The given an example uses a namespace Ns1 to define some of the members of a package Pkg:
package Pkg api;
namespace Ns1; // Defines namespace `Ns1` within this package.
namespace Ns2.S; // Defines namespaces `Ns2` and `Ns2.S`.
fn A();
private fn Ns1.B(); //Declares function `B` in namespace `Ns1`.
fn NS.C(); //This will throw an error - `NS` hasn't been declared
fn D() {
E(); // This will throw an error - No `package.E`
}
fn Ns1.F() {
// Look in both `package.Ns1` and `package`.
A(); // Finds `package.A` and `package.Ns1.B`.
B();
}
fn Ns2.S.G(); //Declares function `G` in namespace `Ns2.S`.
fn Ns2.H(); //Declares function `H` in namespace `Ns2`.