Sujet : Re: constexpr keyword is unnecessary
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 30. Oct 2024, 01:41:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfrvce$1pjpe$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 29.10.2024 15:13, David Brown wrote:
[...] I am /certainly/ not
convinced "truncate" is a good name - the general term, AFAIK, for a
conversion that might try to squeeze a large value into a smaller type
is "narrowing" rather than "truncating".
Algol 68 has an operator called 'shorten' for that (which resembles
the 'long'/'short' type naming). - Just to throw in an alternative
name (which also fits to "C" with its [similar] long/short types).
Janis