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

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

Replies are listed 'Best First'.
Re^6: Unicode infinity
by Anonymous Monk on Jul 02, 2024 at 14:19 UTC
      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 √(π).

        Nope, don't need spaces between symbols and identifiers.

        For example,

        1 + length - inf ! f() g( $z )

        can be written as

        1 +length -inf !f() g( $z)

        etc

Re^6: Unicode infinity
by NERDVANA (Priest) on Jul 02, 2024 at 20:17 UTC
    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.