BAT
-
Posts
1 -
Joined
-
Last visited
Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Scripting
in Feedback for the Affinity V2 Suite of Products
Posted
I really don't understand this comparison with Python and Fortran that I come across a lot. Python doesn't restrict where you indent to - the indentation (1 space, 4 spaces, 8 spaces, 1 tab whatever) just marks a block - if things line up they are in the same block. It's no more arbritary than having to use '{' and '}' in C/C++/JS or "begin"/"end" in other languages. Not really a lot like punch-cards (and yes I remember those and programming in Fortran et al.). I've found that beginners find it easier than having to remember to use '{' and '}' and the inconsistencies in C/C++ about where you use braces but YMMV on that. I work as a freelance developer and most C/C++ I see uses Allman (except in the Linux Kernel where it's K&R) and every virtually customer that I work at has coding guidelines for JS/C/C++/C# etc.that enforce a house style - I don't find any of these programmer-hostile, it's just another set of rules to follow (or break
).
Having said all that - I'd be quite happy for any generic scripting language to appear in the Affinity suite - Javascript, Python or whatever; there are advantages and disadvantages to all scripting languages.