[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...



On Mon, Jul 21, 2025 at 13:37:33 +0200, Michael wrote:
> iirc, i think i have read in your wiki to NOT have variable names with
> leading underscores...

If you restrict yourself to never using variable names beginning with _
in normal situations, then that gives you the opportunity to use it
as a pseudo-namespace delimiter in this unusual situation.

I'm not sure which page you're referring to specifically, but generally
the convention is that if you begin a variable name with _ then it
has some special meaning or significance, which is up to you to define.
The basic idea is that if you create a variable name of this form, you
can be fairly confident that it doesn't collide with anything, but this
only works if you follow a consistent convention.

If *all* your variable names begin with _ then you're just a lunatic.
(Yes, I've seen people do this.  No, I have no clue why.)


Reply to: