On Monday, 28 April 2014 17:44:51 UTC+1, Stefan Karpinski wrote:
>
> Oh, I got that – I just got sidetracked with the general language design 
> issue. I think we're better off just sticking with open as it is. Either 
> way it will be unfamiliar to some people – at least using open like this 
> will be familiar to people coming from Ruby (not an insubstantial segment 
> of programmers). Calling it withfile is a bit weird because the main thing 
> that the function call does is open the file for you. It's just that it 
> also closes it for you too and the binding is scoped to just the region 
> where the file is open.
>

Fair enough. If this is to be the general convention, then `with_rounding` 
and `with_bigfloat_precision` could be combined into the relevant `set_*` 
methods. 
 

Reply via email to