go to post Evgeny Shvarov · 13 hr ago "Oh my god!" Thanks for sharing @Steven Hobbs ! And thanks god we don't have a need to use goto anymore, as it is quite a legal way to shoot yourself in both feet.
go to post Evgeny Shvarov · 13 hr ago Thanks, @Kurro Lopez! Agree! The only moment - I don't recommend using %All in production as it is a very broad permission.
go to post Evgeny Shvarov · Feb 17 Thanks @Eduard Lebedyuk! It looks like return is being used indeed!
go to post Evgeny Shvarov · Feb 17 Thanks @Ali Nasser! Very interesting, I'll take a look - and "Yes", I still debug with B "L" sometimes.
go to post Evgeny Shvarov · Feb 16 Right. I was thinking, too, that AI might code directly in obj-code for "efficiency" maybe with unit-tests keeping "taking care" of logic consistancy.
go to post Evgeny Shvarov · Feb 16 Thank you @Vitaliy Serdtsev ! It seems this is what I was looking for.
go to post Evgeny Shvarov · Feb 16 Wow, @Herman Slagman! And you did it before the ideas portal had come into existence, notice @Irène Mykhailova @Anastasia Dyubaylo ! Thank you, anyway! Could you share why and when you use it?
go to post Evgeny Shvarov · Feb 16 Thanks @Enrico Parisi ! I'm not that strict about return inside FOR and DO WHILE, as I see it as the clearest difference over the quit.
go to post Evgeny Shvarov · Feb 16 Oh, I didn't know that you cannot quit "result" out of Try Catch, thank you @Pietro Di Leo
go to post Evgeny Shvarov · Feb 16 The compiler does not return an error for the QUIT usage as it exits the routine correctly. BTW, DC AI is wrong here - quit with argument within for loop is not correct.
go to post Evgeny Shvarov · Feb 16 Thank you, @Dmitrii Baranov ! Just want to assure you, the account is not hacked, yet ;) Yes, it may be a strange question (though it is a discussion), but if we put a poll (maybe not a bad idea too), I bet the majority of developers don't use the return command at all. And I remember times when it was introduced to a language (not that long ago). That's why AI is not using it in code generation, as it relies on the common practices in the publicly available source codes. Essentially, I would recommend always using Return to exit a function (as in all other programming languages) and Quit to exit a loop. Yes, makes sense, thank you.
go to post Evgeny Shvarov · Feb 14 Thank you, @Robert Barbiaux ! Love the historic review! It's great to see you find the utility for return command. p.s. IMHO, generative AIs, while useful in some contexts, are nor artificial, because they are trained with human sourced corpus, nor intelligent, because they are not able of any real creativity and are not doing any reasoning (even if they can mimic both rather well) 😇 Agree! In fact humans can mimic the reasoning perfectly too :)
go to post Evgeny Shvarov · Feb 14 Thanks @Ali Nasser ! Very interesting about quit's debugging stack level option. Could you share some examples?
go to post Evgeny Shvarov · Feb 14 Ha-ha, @Julius Kavay ! I still have hopes with my one :) He/she/it is trying and sometimes is quite helpful indeed )
go to post Evgeny Shvarov · Feb 13 Thank you @Robert Barbiaux ! Makes sense! I'll take a look if I can implement it vs what I'm doing. I was thinking of introducing several IRIS web-apps serving one frontend that addresses different parts of logic as a spec file and implementation far beyond 2K of lines already. But not sure if it is a good/bad practice to have several web apps, and if it is a common approach. Of course, it brings a burden of accesses/roles/security whoops, etc.