Is it possible to define an infix function?

后端 未结 5 972
不思量自难忘°
不思量自难忘° 2021-02-08 09:21

Is it possible to define my own infix function/operator in CoffeeScript (or in pure JavaScript)? e.g. I want to call

a foo b

or



        
5条回答
  •  忘掉有多难
    2021-02-08 10:09

    Actually adding this as an answer: no, this is not possible.

    It's not possible in vanilla JS.

    It's not possible in CoffeeScript.

提交回复
热议问题