|
|
|
|
|
by noduerme
459 days ago
|
|
I can't think of a lot of examples where I'd want to call: new API()->object->method()->subResult particularly if the API might block. But I can think of a lot of reasons I wouldn't want to see that in my codebase. Usually starting with the fact that try { $api = new API(); } should have a catch after it. For local stuff, fine, if you want to write that way. I don't find it eminently more readable than seeing a variable created and employed. And I'd like to see the line number the error was thrown on, if I'm reading error logs in production. |
|