As of BC23 we will be getting access to namespaces, which will be a big help in factoring code. You can import other namespaces, by using, well, "using" in your object, as below.
using Microsoft.Sales.Document
However, (and I know this from C#) when you have a lot of namespaces in your object, it is sometimes desirable necessary to expressly add the namespace for your object to keep your code clear and unambiguous. If namespaces ever replace name affixes (which we generally hope will happen), then this might become a necessity.
Typing the full namespace, however, would quickly become cumbersome and would negatively impact readability of code. Therefore, I would like so see the ability to add named namespaces, like this:
using MSSalesDocs = Microsoft.Sales.Document
This will allow us to use namespaces explicitly while still maintaining readability.
Comments
Gread Idea.
Category: Development
Indeed, great idea!
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team