``` #[inline(always)] fn k<E>() -> Result<(), E> { Ok(()) } fn main() -> std::io::Result<()> { k() } ```
https://cdn.fosstodon.org/media_attachments/files/112/870/229/697/373/346/original/b572f6b2516ba00d.png
Are you a #RustLang programmer? :ferris:
Are you tired of constantly typing Ok(())? 😩
Do you want something that reduces the pain by 50%? 😯
Look no further than my function k() 🤯
RFC to add it to prelude when? 😂
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.