#msdyn365bc It looks like AL is soon enhanced with the continue keyword π€«
https://github.com/microsoft/AL/issues/7928#issuecomment-2529088784
https://github.com/microsoft/AL/issues/7928#issuecomment-2529088784
Comments
It will improve our code.
We will be able to use positive conditions to make our code friendlier.
If condition true
Continue
Else
Do some other processing.
Known issue: It might break your existing code.
https://github.com/Microsoft/AL/issues/7930
https://marketplace.visualstudio.com/items/ms-dynamics-smb.al/changelog
I'm sure it will cause less buzz than the ternary operator even though it's 10x more usefulβ¦
Thanks BazookaMusic!
If CheckConditions() then
RunProcess();
I'm glad continue is coming to improve code readability.
I like that we now have βcontinueβ as an option. But having multiple continue statements in a single loop can decrease readability in my opinion.
If condition then
LongRestOfProcedure
Using "if" here instead (just like we do today) is comparable to avoiding exit in procedures.