in reply to (jeffa) Re: A better mod (%) operator?
in thread A better mod (%) operator?

Too bad Perl doesn't use a few other math symbols from Unicode as operator tokens (with no built-in meaning). I think that would be very easy to add. Often what's needed is a "different flavor" of multiplication etc., so using the circled cross etc. would be good choices, and they can have the same precidence as their ordinary cousins.

Replies are listed 'Best First'.
Re: More operator tokens
by Fastolfe (Vicar) on Jul 09, 2002 at 21:25 UTC
    Which key would I use to type that operator in vi? :)
      Try control-alt-hyperspace-meta buckyball.

      FWIW, it looks like "Space Cadet" keyboards are gaining popularity. I just got a "MS Office" keyboard to replace a dead one, as it had the best quality and key-feel of any in the store.

      In the superior vim :^), that would be Ctrl-V <numerical character code> (can be any of decimal, octal or hex) - see :help i_CTRL-V_digit


      Makeshifts last the longest.

      Maybe you could use an ascii sequence such as (*).