Collaborate

Adding comments directly within Boolean expressions, to improve readability and understanding without affecting the expression's logic

Pulsar should support a way to add comments within the Boolean expression itself, similar to how you can add comments in programming languages like Python or JavaScript. These comments wouldn't be part of the logic of the expression, but would simply be notes to help explain the different parts.

For example, imagine I have this Boolean expression:

(keyword1 OR keyword2) AND (keyword3 OR keyword4)

I'd like to be able to add comments like this (using a hypothetical comment syntax, perhaps // or #):

(keyword1 OR keyword2) // Keywords related to topic A AND (keyword3 OR keyword4) // Keywords related to topic B

These comments would be ignored by Pulsar when evaluating the Boolean expression, but would help me (and others) understand the purpose of each section.

  • Guest
  • Feb 27 2025
  • Attach files