You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several dozen places in our code where need to set a context for the scope (typically, the function body). We do so by defining a local CADRe variable :
with expr being some expression yielding a context handle. This is fine, but - it would not be a bad idea to mark this variable as const (various IDEs are all for it). Also, it's a lot of typing. Let's use a macro, then:
this might look a little ugly (WHO LIKES ALL CAPS?), but it conveys the intention even more clearly when reading the code, and it's 24 characters + the length of expr, vs. 78 characters + the length of expr, which is not just less typing, but less cognitive load when reading the code.
The text was updated successfully, but these errors were encountered:
There are several dozen places in our code where need to set a context for the scope (typically, the function body). We do so by defining a local CADRe variable :
with
expr
being some expression yielding a context handle. This is fine, but - it would not be a bad idea to mark this variable asconst
(various IDEs are all for it). Also, it's a lot of typing. Let's use a macro, then:this might look a little ugly (WHO LIKES ALL CAPS?), but it conveys the intention even more clearly when reading the code, and it's 24 characters + the length of expr, vs. 78 characters + the length of expr, which is not just less typing, but less cognitive load when reading the code.
The text was updated successfully, but these errors were encountered: