4 ms·
A lot of programmers will look at '`impl Fn(&Vec<&'a str>) -> &'a str`' and think what the hell is that, alien hieroglyphics?
by jossclimb 4y ago
A lot of programmers will look at '`impl Fn(&Vec<&'a str>) -> &'a str`' and think what the hell is that, alien hieroglyphics?
- nequo 4y agoLoosely speaking, it’s a type signature for a function that 1. takes an immutable reference to a vector of strings and 2. returns an immutable reference to a string, 3. with the constraint that the strings in the input vector must not be freed before the result is freed. It’s a reasonably concise way of saying all that.
- kazinator 4y agoI'm pretty sure I never want to have anything to do with any of these concepts, no matter the syntax.
- deleted 4y ago[deleted]
- satvikpendem 4y agoSame for APL, Perl, Lisp, Haskell and many others, or even C with multiple (double or triple) pointers and C++ with many pointer types. At the end of the day, you can't understand a language without, well, learning it.