in reply to Re^3: Unicode infinity
in thread Unicode infinity

Right, they have the same outcome, just different ways to arrive there.

Replies are listed 'Best First'.
Re^5: Unicode infinity
by bliako (Abbot) on Jul 02, 2024 at 10:56 UTC

    In entirely friendly attitude: I can't stand gnu error messages containing unicode for ellipses and quotes. It's really a pollution. So, In general I am against polluting the language with non-ascii symbols. And my language's alphabet is entirely non-ascii. Let python be the winner in this battle. I think you opened a can of worms :) next will be <= and >= and what about thumbs-up for if(👍 $x){}. And gotos will become again popular just for the sake of goto 😭 Anyway, I should have said that earlier.

    bw, bliako

        I think you opened a can of worms :) next will be <= and >= and what about thumbs-up for if(👍 $x){}.

      If you can do this:

      perl -Mutf8 -wle 'use constant π=>3.141;use overload "sqrt"=>\&sr;sub sr{sqrt shift}print sr π'
      1.77228665852903
      
      This seems reasonable:
      perl -Mutf8 -wle 'use constant π=>3.141;use overload "sqrt"=>\&√;sub √{sqrt shift}print √π'    
      Unrecognized character \x{221a}
      

        nice! Now on to this ❸.❶❹

        √π looks cool but I know perl needs space √ π or parens √(π).
      But, I like this can of worms :-)

      Don't forget ≠ ! I already added them to Language::FormulaEngine and rather enjoy them in the webapp I built with that.