guppy icon indicating copy to clipboard operation
guppy copied to clipboard

Optional Inputs

Open saivan opened this issue 5 years ago • 0 comments

Perhaps this can already be achieved with your current symbol format, but I can't seem to figure out how. I feel it would be cool to have "optional" inputs, which would render some inputs unnecessary.

For example, you have defi and int, but they could be merged into a single int. The way I'd see this working is:

  • When a user moves the cursor into the scope of the int, they will get the defi display
  • The bounds are "optional" so they perhaps can be displayed in a different color
  • When the user moves out of the scope of the defi, the optional parts will completely hide

This could be useful for a number of things, for example its quite common to write $$\sin^2$$ or $$\log_2$$, and you could achieve this automatically without the need for an extra symbol for these cases.

saivan avatar Mar 20 '19 07:03 saivan