-
-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
Description
The signature for body() is:
func body() -> Element?It would improve ergonomics if there was a version of this that threw, e.g.:
func body() throws -> ElementThis would allow for better ergonomics at call sites that propagate errors, while not really diminishing the ergonomics for sites that want to deal in optionals, as try? is always available.
It wasn't immediately clear to me if try document.select("body") is an appropriate alternative for getting a throwing version of this.