"You have to work hard to get your thinking clean to make it simple" (Steve Jobs).
#msdyn365bc AL now supports ternary operator.
value := condition ? ifTrue : ifFalse;
Personal favorite of mine 🙌
Using it right will make reading code easier.
Using it wrong ... not so much 🤓
@StefanMaron This is not a bug. Page variables doesn't support assignment and can therefore not be passed as arguments. This just follows existing rules for assignment.
Did we just refresh the System and base app reference for Business Central? Yes, we did! Fully adapted to the fluent learn experience and reflecting version 22. Check it out at: https://t.co/diX1JCS1OR
@waldo1001 It has no meaning for non-extensible object types and should have been blocked in the compiler. We will introduce a compiler warning for those cases and block them in a future release - and of course fix our own application code.
@drimmelzwaan There is a bug in 18.0 that we found to late to fix it for the release and mention it in the session:( If using the "advanced list" it wont be called.
It is fixed in 18.1.
Installing apps from #AppSource via an API, that's another of my #MSDyn365BC must have's done in the 21W1/BC18 release - @dmitrych365 is my fav person right now
@waldo1001@pborringms As with much coding-style it is a matter of preference. I certainly have my preferences. Fluent syntax can be used to improve readability (LINQ is a great example), but it can also do the opposite. When asked, I don't think the chain in your example is obvious. Sorry.
Did you register yet to watch #MSDyn365BCLaunchEvent at your nearest home cinema April 13th? @esbennk and I will present "What's New in AL and VS Code", and there will be lots of other great sessions on #MSDyn365BC. Sign up at https://t.co/Q18ozMp6Rj
@markbrummel @NicolasSaleron @PhDuck2 There is an issue with the declaration of the Copy() function. It shouldn't need the 'var' for the first argument, but I will have to investigate.
I think that the point with return values is a lot more than returning temporary tables.