I don't like e.g. "square = document(square)" or "document(:square)". It should be just a short extra at the beginning of the function definition.