-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
unicode operators #552
Copy link
Copy link
Closed
Labels
speculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculativeunicodeRelated to unicode characters and encodingsRelated to unicode characters and encodings
Metadata
Metadata
Assignees
Labels
speculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculativeunicodeRelated to unicode characters and encodingsRelated to unicode characters and encodings
I think that infix functions would be nice. in haskell you can call
+(1,3)(as in julia or lisp). You can write it infix1 + 3, but you can also force infixf(a,b) ==a 'f' b. (actually not ', but rather +0060)I would be really cool if certain range of unicode could be used infix aswell, so one could define
∈, use it like∈([1,2,3],[2,3,9,10])lisp style, or more intuitive[1,2,3] ∈ [2,3,9,10].And maybe a infix "keyword" would be cool as well:
5 ⍚foobar "qwertz"would be the same asfoobar(5,"qwertz")functions with names that contain nothing but +-*/%!§$?<>=#~ and a certain unicode range would be infix by default and would not need that symbol.
A nice thing that could be done would be