Is there a name for the idea that a function should only be invoked from precisely one call site?
-
-
Replying to @sw17ch
Would there be a way to enforce a single-call-site property on a function with a custom Rust attribute? /cc
@steveklabnik@Carols10cents2 replies 0 retweets 0 likes -
Replying to @sw17ch @Carols10cents
but i'm not sure about a function. but if that closure doesn't close over anything, should boil down to the same?
1 reply 0 retweets 1 like -
Replying to @steveklabnik @Carols10cents
oh that's a neat start. I'd be interested in the idea of allowing multiple calls, but only one caller.
1 reply 0 retweets 0 likes -
-
Replying to @steveklabnik @Carols10cents
I could hack something terrible at runtime, but it feels like a thing you could do in the compiler.
3 replies 0 retweets 1 like
Replying to @sw17ch @steveklabnik
i'm a little out of my league here, i think.
3:14 PM - 6 Sep 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.