Pow Expressions - not worth the juice?
Dejan Lekic
dejan.lekic at gmail.com
Tue Feb 3 17:29:44 UTC 2026
On Tuesday, 3 February 2026 at 17:10:13 UTC, user1234 wrote:
> On Tuesday, 3 February 2026 at 16:39:59 UTC, user1234 wrote:
>> On Tuesday, 3 February 2026 at 15:51:05 UTC, jmh530 wrote:
>>> [...]
>>
>> Thanks for your reply but that confirms what I initially
>> thought. Personally I see a little problem with the surrouding
>> percent symbols (i.e not a progress compared to call syntax,
>> they are equally unperfect) but essentially that's not a
>> criticism about R designers choices. Just not fan you see.
>
> well to be completly honest, it's nice to be able to write `a
> %∩% b` but the percent syms waste the whole thing I think.
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`)...
More information about the Digitalmars-d
mailing list