Results 1 to 2 of 2

Thread: General style question
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular kweaver's Avatar
    Join Date
    May 2018
    Location
    La Jolla, CA
    Posts
    633
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Default General style question

    Wouldn't it be advisable to avoid using a lower case "L" for, say, a loop when it (l) looks too much like the number 1?

  2. #2
    Board Regular Kenneth Hobson's Avatar
    Join Date
    Feb 2007
    Location
    Tecumseh, OK
    Posts
    3,066
    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Default Re: General style question

    Code does not care. When posting to a forum or your own code, one might get confused. I tend to avoid it myself. From old Fortran coding methods, we used i, j, k as integer counters. When I get to that one, I use, m, or ii, jj, kk, etc. It would be more clear if you dimmed it as L, so that case would be retained.
    Last edited by Kenneth Hobson; Sep 15th, 2019 at 02:43 PM.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •