condp should accept macros as first argument. Also would allow proper inlining

Description

Currently condp takes the value of the first argument pred. This has two disadvantages:

  1. It won't allow macros to be used as the first argument

  2. It will be less efficient since the function calls can't be inlined anymore (common idiom: condp = x ...)

If pred is a symbol the let binding can be avoided. This would properly inline = which is common.

Environment

None

Assignee

Unassigned

Reporter

Andre R

Labels

None

Approval

None

Patch

None

Affects versions

Priority

Minor
Configure