And, Or, and Not renamed

8 views
Skip to first unread message

Sherm Ostrowsky

unread,
Aug 28, 2011, 2:47:45 AM8/28/11
to mathpi...@googlegroups.com
I just noticed that the And, Or, and Not operators and functions have been renamed to And?, Or?, and Not? respectively.  Did I understand this correctly?  I wonder if this is a good idea.

 In the sense that these can be considered as Predicates, the consistent naming convention with trailing "?" would be appropriate.  But it seems to me that these functions or operators have other uses which are at best only remotely connected to the concept of "predicate", and here the usage strikes me as unintuitive and even bad.  Perhaps I am misremembering how some things are done in MathPiper. 

Sherm

Ted Kosan

unread,
Aug 28, 2011, 3:17:22 AM8/28/11
to mathpi...@googlegroups.com
Sherm wrote:

My plan is to change the names of all the predicate functions and
operators that are listed in the predicates category in the MathPiper
docs plugin so that they end with a ? character. Can you locate some
examples in the scripts where And, Or, or Not are not used as
predicates?

Ted

Sherm Ostrowsky

unread,
Aug 29, 2011, 2:36:46 AM8/29/11
to mathpi...@googlegroups.com

Well, I guess you are right.  But for some reason it FEELS wrong. 

I'll get used to it.

Sherm

Ted Kosan

unread,
Aug 29, 2011, 10:54:20 AM8/29/11
to mathpi...@googlegroups.com
Sherm wrote:

> Well, I guess you are right.  But for some reason it FEELS wrong.

Another benefit of having all predicate functions and operators end
with a ? is that it will be easy to filter them out from traces.
Currently, most of the content of traces are predicate functions which
are being called as part of function pattern matching. My thought is
that if all of these predicate functions were removed from the trace
output, traces will be much easier to read.

Ted

Reply all
Reply to author
Forward
0 new messages