Elektrine lite

← Feed

@timorl@social.wuatek.is

2026-11-04 17:30 UTC

With this and clippy complaining about too many arguments, I’m starting to suspect idiomatic Rust will slowly converge to pub struct MyFuncArgs { pub first_arg: (), .. }

Replies (1)

  • @star@fed.amazonawaws.com 2026-11-04 17:33

    @timorl@social.wuatek.is consider this cursed abomination: pub trait MyFunction { /// This is my string. I named him stringy. :3 type MyFirstArgument = String; /// This is my other string, named strong type MySecondArgument = String; fn my_function(arg1: Self::MyFirstArgument, arg2: Self::MySecondArgument) { todo!() } }

    Open ##5481174