develooper Front page | perl.perl5.porters | Postings from March 2023

Re: Pre-RFC Deep constants

Thread Previous | Thread Next
From:
"Ruud H.G. van Tol" via perl5-porters
Date:
March 10, 2023 12:20
Subject:
Re: Pre-RFC Deep constants
Message ID:
777e8d1d-663e-c5c0-3c71-340ed04543df@isolution.nl

On 2023-03-10 10:24, Ruud H.G. van Tol wrote:
>
> On 2023-03-09 17:58, Robert Rothenberg wrote:
>> I'm a fan of using constants in code, and often using interpolatable 
>> constants with something like Readonly or Const::Fast for deep 
>> constants:
>
> I think it is good to list all that can be meant by 'constant'.
>
> There are constants that direct compilation.
> For example to "compile out" a part of the code.
> Or constants that can be inlined at compilation.
>
> Per process there is $^T, generally a fixed integer.
>
> Etc. etc.

CPAN 'constant' modules, from 2012:
https://neilb.org/reviews/constants.html

-- Ruud


Thread Previous | Thread Next


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