Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for better modularity #111

Closed
marknitek opened this issue Mar 14, 2017 · 4 comments
Closed

Support for better modularity #111

marknitek opened this issue Mar 14, 2017 · 4 comments

Comments

@marknitek
Copy link

Since the early days of NAV we have a bunch of limitations that stop us from writing highly modular code and reusable code.
It would be great when the change to the new AL Language would overcome some of these limitations.

  • Not all types are supported as return types of functions
  • No support for interfaces or another type of abstraction (other then RecRef which is limited)
  • We can not pass objects as parameters
  • No support for optional parameters in functions or function overloading

I'am sure there are some more which i don't remember right now

Are there any plans to enhance the language to support things like this?

@luxzeitlos
Copy link

We can not pass objects as parameters

This is not true. All Objects that can be stored as variables can be passed as parameters.

@marknitek
Copy link
Author

Well what i meant was, that we have to specify the exact object. I am unable to pass "any" Page or "any" codeunit to then perform operations on it.

@stuartglasson
Copy link

The ideas exist and we have discussions about what to add to the language to make it more useful. Adding more OO support would help with many scenarios and save code duplication.
To be honest, we're still working hard on the basics and discussions about language are mostly discussions. Things we add today are language features to support the online platform or for security/isolation of Apps.

We will get there but we're not there yet.

As there's no "bug" in this issue, I'd like to close the comment. I'll do that in a few days unless you want to add more to the thread.

@stuartglasson
Copy link

Closing this issue as it's not really a bug. You can still find it in closed issues.

@microsoft microsoft locked and limited conversation to collaborators Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants