In nim, you can do the following:
let num = 5.add(3)
which will be the same as
let num = add(5,3)
So basically you accept the expression before the dot as the first argument to the function. I am sure that other languages have this feature, but no one remembered.
What I want to know is the name that has this syntax
source
share