[fpc-other] Underscores in numerical literals - grouping

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Nov 23 13:53:38 CET 2016


On 2016-11-23 12:38, Jürgen Hestermann wrote:
> But this happens quite often in my code in function/procedure
> declarations as I align the parameters and directly after this

See attached screenshot. It shows three options.

  1) your original code
  2) I live to define each parameter individually with modifier
     and data type. But this layout makes the code stretch for
     to the right, meaning I might have to scroll horizontally
     to see all the parameter definitions.
  3) Slightly reworked (2) - no more horizontal scrolling required


I know coding style is a very personal thing. So I'm not saying you must
change your, I'm just showing examples of others.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled3.png
Type: image/png
Size: 35309 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20161123/87422b82/attachment-0001.png>


More information about the fpc-other mailing list