With a bit of fiddeling you can use every kind of bracket to basically make function calls in c++

Here are the links to the snippets, all compile and run

Rust: https://godbolt.org/z/bM3d7bG14

OCaml: https://godbolt.org/z/17oMv83zx

C++: https://godbolt.org/z/9Y3WfoE1W

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 9 hours ago

You can do most if not all of this in Perl if you're twisted enough. Some hoop jumping may be required*, but I can think of ways to do something that looks like each of these.

*: The braces are especially tricky if warnings are turned on. I'd probably abuse the deprecated multidimensional syntax and tie a hash to the actual function.

  • source