79266974

Date: 2024-12-10 04:00:16
Score: 2
Natty:
Report link

Can it help? This is my code:

class Person {
    public var attachValue: Any?
    func setAttachValue<T>(_ obj: T) {
        self.attachValue = obj
    }
    func getAttachValue<T>() -> T? {
        return attachValue as? T
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can it help
  • Low reputation (1):
Posted by: Weizhen Liu