gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability Considerations


From: Alice Osako
Subject: Re: Portability Considerations
Date: Mon, 18 Mar 2024 13:11:37 -0400
User-agent: Mozilla Thunderbird

Benjamin Kowarsch:
The use of infix operators with sets isn't all that great anyway since the only operators supported are not intuitive because they do not match the mathematical operators.
Not being terribly enthusiastic for infix operators in general, I certainly can agree.

EXPORT is only needed within local modules, that is, modules that are nested within other modules (ugly sh1t).

At the top level, everything within an interface module (.def) is automatically exported.

Ah, I misunderstood the purpose of EXPORT QUALIFIED, then; I assumed from what little I knew about it that the intent was to force fully qualified naming in client code.

Also, since you are likely to have expressions with multiple bit operations, you want to keep the names of the functions as short as possible to avoid clutter. Across languages of the Algol/Pascal family, you will most frequently see the following names:

SHL, SHR, ASHR, ROTL, ROTR, BWNOT, BWAND, BWOR etc


I won't fight you on this point, especially since my previous naming scheme assumed that fully qualified names would be enforced and only worked as intended if they were. I've changed the naming scheme as you suggested.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]