Pow Expressions - not worth the juice?

Lance Bachmeier no at spam.net
Tue Feb 3 17:38:16 UTC 2026


On Tuesday, 3 February 2026 at 17:29:44 UTC, Dejan Lekic wrote:

> I suppose you could use # for this purpose and make `10 
> #divisible# 2` return true... No ambiguities as # is not used 
> anywhere in D. How can people live with that terrible R syntax 
> is beyond me, but hey - matter of taste I guess! This could 
> allow alternative syntax for some common logic operators (`foo 
> #ge# 2` as alternative to `foo >= 2`)...

R didn't have many alternatives, as it's a numerical language, so 
they already used all the operators for other things. It does 
make it stand out, which is nice for readability once you are 
experienced with the language.


More information about the Digitalmars-d mailing list