Al: Global vars on about each snippet

Created on 3 Jul 2017  路  2Comments  路  Source: microsoft/AL

Hi,

I noticed there is a section of global variables with one global var on each snippet. I understand that it's not very "clear" on where to put global vars in the syntax .. but in terms of a general development rule: "keep all as local as possible", this is not very convenient. Now, about all snippets that people use, we need to remove these global vars all the time.. .

I would suggest to remove them from the snippets.. .

because .. keep in mind:
image

question

Most helpful comment

I completely agree with you. Keeping the global vars in the snippets for now is a tradeoff between teaching the new AL syntax and promoting good practices.
We will most likely remove it in 2-3 months once the community is more familiar with the new syntax.

All 2 comments

I agree. Please remove them.

I completely agree with you. Keeping the global vars in the snippets for now is a tradeoff between teaching the new AL syntax and promoting good practices.
We will most likely remove it in 2-3 months once the community is more familiar with the new syntax.

Was this page helpful?
0 / 5 - 0 ratings