Is function type required for closure ?