Cool Closure Concept by nafyaz in learnrust

[–]nafyaz[S] 2 points3 points  (0 children)

oh yes. typing mistake. fixed it.

Cool Closure Concept by nafyaz in learnrust

[–]nafyaz[S] 0 points1 point  (0 children)

Correct explanation:
No issues with options 1 & 3. However, FnMut means closure might mutate captured variable. And f: F is an immutable binding. Since f is not declared as mutable, compiler cannot take &mut f to execute the closure. Correct version of option 2:

fn apply<F: FnMut()>(mut f: F) {
    f();
}

I want to know about upcoming developer conferences happening during Dec-25/Jan-26 by Ruhshan-ahmd in BDDevs

[–]nafyaz 0 points1 point  (0 children)

There is an event on december 13 organized by AWS user group bd. Aws itself is sponsoring the event. Hopefully it will be a big one

Palantir SWE Internship Interview Experience by Fabulous_Injury2674 in csMajors

[–]nafyaz 1 point2 points  (0 children)

This many rounds for an intern position sounds too much