With most programming languages, the typical convention is to have imports/inclu...
Urho Laukkarinen @urholaukkarinen@mementomori.social
With most programming languages, the typical convention is to have imports/includes at the top of the source file, followed by constants, structures, classes, and then functions. I guess that, in most languages, the order also stems from language limitations that require things to be declared before they are used (in source order).
Interestingly, with the Jai language, I have come to prefer the exact opposite: functions first, then structures, then constants, and imports at the very bottom.