2 ms·
Hah, that’s neat. I was at a place that had a convention to do Function blah(…) Argument validation Call realBlah(…) That way internally we could
by bee_rider 3y ago
Hah, that’s neat.
I was at a place that had a convention to do
Function blah(…)
Argument validation
Call realBlah(…)
That way internally we could just call realBlah if we needed the functionality of blah without the validation. So I guess we could have used this all over the place.
I guess (although could be wrong, this is the first time I’ve seen it) this strategy is basically incompatible with inlining, though?
- kitkat_new 3y agowhy would it? recursive inlining
- bee_rider 3y agoThere’s apparently some deep and obvious connection between recursion and multiple entry points, but I don’t know what it is.