Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Unicode infinity

by bliako (Abbot)
on Jul 02, 2024 at 10:56 UTC ( [id://11160310]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11160310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2026-04-15 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.