Conversation

val fun: Arg => Ret def fun(Arg): Ret when you don't have a function arrow (i.e. =>) then definitely I'd go with ->. but Scala has function arrow
2
Yeah I agree it works fine in Rust, yeah… but I think I'd want closures to be able to support other substructural properties beyond what Rust supports? And then you start getting more and more traits? But yeah I haven't thought it through carefully yet 😅
2
1
Show replies