What exactly is >>?

Out of curiosity, what exactly does the >> operator do in FoxDot? I know it’s a bitwise operator in vanilla Python, so what exactly does it do in FoxDot, and how does it do what it does?

It’s basically syntactic sugar. p1 >> pads([0, 1, 2, 3], dur=1/2) is pretty much equivalent to p1.update("pads", [0, 1, 2, 3], dur=1/2). It’s inspired by ixi-lang’s use of -> for assigning agents with instructions but using two greater-than signs is easier to type and Python has an operator overload for bitshift.

1 Like