This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Opinions: line/column numbering conventions in the Guile API


Currently, the Guile API contains two selectors, `port-lines' and
`port-column', which returns the current line number and column number
in the file being read from.

As in Emacs, lines are numbered starting at 1 while column numbers
start at 0.

I'm not familiar with the reason for this mixed convention in Emacs
Lisp, but when using it in ELisp programs it has seemed practical to
me.  (With this I mean that it has often avoided extra operations.)

To get a more symmetric (consistent) API, it could be desirable to
number lines starting at 0 instead.

Is this better?
Do people have opinions about this?

/mdj