develooper Front page | perl.perl6.language | Postings from September 2018

Best practices?

From:
Parrot Raiser
Date:
September 2, 2018 17:35
Subject:
Best practices?
Message ID:
CACwLAp9MtvWVQEO6dJoJ6z4p_BROuRuziHZT6oK2r0ZYGyoGNQ@mail.gmail.com
What would be the criteria for deciding whether to name P6 constants
using  lower-case or UPPER_CASE names?

Generally,  system constants and variables use upper-case, so
lower-case keeps user variables in a separate name space. Do
user-defined constants belong there, or in upper-case to indicate that
they are global?

Apologies in advance if this starts a vicious ideological conflict.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About