4 ms·
Lazarus is a compelling reason to pick Pascal. But I share your pain and had been looking for alternatives for machine-code-compiled RAD GUIs. To add, only mode
by signaru 3y ago
Lazarus is a compelling reason to pick Pascal. But I share your pain and had been looking for alternatives for machine-code-compiled RAD GUIs. To add, only modern Delphi supports var declarations that can be placed elsewhere other than the top of the function.
- Tozen 3y agoActually, the PascalABC dialect[1][2] supports using variables in that way too. However, I've seen arguments that allowing variable declarations anywhere tends to lead to sloppier coding and unnecessary errors, so Free Pascal/Lazarus has not followed that trend. It also appears that Delphi/Embarcadero may have went in that direction to synchronize their C++Builder and Delphi products, to make it easier to jump between them. 1. https://pascalabc.net/en/ https://pascalabc.net/en/ (PascalABC) 2. https://github.com/pascalabcnet/pascalabcnet https://github.com/pascalabcnet/pascalabcnet (PascalABC GitHub)
- signaru 3y agoPascalABC seems to only target dot NET though.