Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to magically define variables and use functional notation instead of methods

I am always too lazy to look up again where it is that one can do these things. Not that I would ever use such dangerous things myself.

  • Magically define variables (so that you don't have to var('y'))
  • Magically define functions (so that one doesn't need boof.annoying_method(), but instead can do annoying_method(boof))

Once it's on here, people can find it more easily and put themselves in more danger.