Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread James Richters
The problem with your example "text_with_tabs_Input-Sans_proportional_font_and_ET.png" is that the underscores and the word Range and the brackets are all out of alignment, even though everything is re-aligned again with the := I prefer the array elements to also be aligned as well. In my

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Mattias Gaertner
On Tue, 22 Nov 2016 13:32:03 + Graeme Geldenhuys wrote: > On 2016-11-22 13:26, Sven Barth wrote: > > I think the difference a tab versus a couple of spaces makes (even if > > across a whole file or a whole project) will be insignificant > > Well, for every

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Reimar Grabowski
On Tue, 22 Nov 2016 12:41:37 + Graeme Geldenhuys wrote: > hahaha... I love how a con is “fundamentally different concept”. How is > that a con? Fundamentally different to the way current IDEs/editors process their text -> too much work for a feature no one

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Vojtěch Čihák
To the topic:   Currently when I write the line (in Laz. editor):   const Num = 123456789;      I can hover the identifier "Num" and I see tooltip:   const Num = 123456789 /file/name.pas(x,y)   And there is no tooltip when I hover the "123456789".   Maybe this is place for improvement.   Hovering

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Jonas Maebe
Hi, Now that the discussion moved from a potential compiler feature to coding style preferences, can we please move it to the fpc-other list? Thanks, Jonas FPC mailing lists admin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 13:12, Martin Schreiber wrote: > I think you are wrong. And you have all the right in the world to say that. Just like I would say I can't read your code at all - because everything is lowercase and with only 1-space indentation. Your coding style - your preference. Each developer

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 13:26, Lars wrote: > As for underscores in numbers, it is an interesting idea but I see delphi > compatibility issues coming up any code you want to port has to be > converted to non underscores Who in there right mind would ever want to move from Free Pascal to Delphi! The

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 13:26, Sven Barth wrote: > I think the difference a tab versus a couple of spaces makes (even if > across a whole file or a whole project) will be insignificant Well, for every byte in the file, the parser needs to figure out what to do with it. Less bytes, means less processing

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Lars
On Tue, November 22, 2016 6:12 am, Martin Schreiber wrote: > On 11/21/2016 03:46 PM, Graeme Geldenhuys wrote: > >> The age old rule >> of programmer source code always being in a mono-spaced font is >> ridiculous for this day and age. >> ... > A programmer scans code most the time vertically > or

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Sven Barth
Am 22.11.2016 12:14 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > But to give you an idea of what the above source code will look like in > other editors. Take my code sample above, replace the spaces with single > TAB (U+0009) characters. This not only reduces the file size, it

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 12:59, Stephen Chrzanowski wrote: > tables/divs/CSS that change those sites around so I can view the way I want > to, not the way they THINK is best for me. And there is no difference to that and an editor that supports ET. If you don't want to use ET, simply disable it, and go

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Martin Schreiber
On 11/21/2016 03:46 PM, Graeme Geldenhuys wrote: >The age old rule > of programmer source code always being in a mono-spaced font is > ridiculous for this day and age. > I think you are wrong. A programmer scans code most the time vertically or block by block and not horizontally and word by word

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Stephen Chrzanowski
Now we're getting into the field of personal preferences, and EVERYONE and their neighbor on the internet is going to defend their personal preferences like a rabid dog over a piece of meat. Looking at a screen all day long, comfortably, is ultimately up to the person sitting in the chair at that

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 11:15, Jürgen Hestermann wrote: > I am still not sure how exactly elastic tab stops work. Think how a word processor (MS Word, LibreOffice Writer) interprets tabstops. Word Processors don't define a TAB as x width of Spaces or Pixels. But for some strange reason IDE's and Text

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 11:27, Yann Mérignac wrote: > In Ada at least since 1983. > http://archive.adaic.com/standards/83lrm/html/lrm-02-04.html :-D Thanks for that Yann. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-21 23:59, Dmitry Boyarintsev wrote: > I find it a made up problem, inspired by sales department. Not at all. I do agree that using constants is a very good idea, instead of hard-coded "magic numbers", but sometimes you use a value only once in your code, and a constant is simply

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Yann Mérignac
> Is there any other place in any language (programming or natural) where underscored are used in this way? In Ada at least since 1983. http://archive.adaic.com/standards/83lrm/html/lrm-02-04.html 2016-11-22 1:26 GMT+01:00 Gordon Findlay : > Yet another daft idea from

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Jürgen Hestermann
I am still not sure how exactly elastic tab stops work. I put standard tabs (#9) in each line and the editor aligns these tabs for adjacent lines? What if an empty line is between such lines? What if I want to start a new 'table' which is not related to preceeding or following lines? In this

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-21 23:59, James Richters wrote: > I, l, 1, AND | are all distinctly > different with it as well as 0 and O.I have a REAL pet peeve about > font's that these characters look identical, You do realise that not all monospaced fonts are equals. Some monospaced fonts are terrible for

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 08:31, Marco van de Voort wrote: > If you can do it in IDE, do it in IDE, indeed. Indeed. This discussion clearly revealed that having a smarter IDE or text editor is the preferred way to go, compared to implementing a compiler change that supports underscores (like the original

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Graeme Geldenhuys
On 2016-11-22 04:41, Flávio Etrusco wrote: > The editor can just switch to a monospaced font when the > vertical/column selecion-mode is toggled, this is what Eclipse does. Exactly, and if you are prefixing something or inserting something in multiple lines that all have the same text, even in

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > other editors. > > Elastic Tabstops (ET) only does rendering of the text - based on two > user defined preferences. The underling file doesn't change because of > user preference changes. The underlying file is just a TAB(U+0009) > indented