3 ms·What would be the point of that? Just return `foo` and destructor in the callee.by the_mitsuhiko 11y agoWhat would be the point of that? Just return `foo` and destructor in the callee.peeters 11y agoEncapsulation/information hiding?sotojuan 11y agoThat's definitely another option (and what I use now!), but I do what I posted in Elixir a lot so I guess I'm used to it.deleted 11y ago[deleted]andreyf 11y agoBut how is it different from just returning foo?Drawrof 11y agoOne difference is that you could return data to callers that you don't want them having access to.