On Fri, 9 Nov 2007, Derek Elkins wrote:

> Pointless frobbing but is there any issue with setting the echo to False
> when it is already False?  Otherwise not checking seems to both simpler
> and quicker (not that performance matters), i.e.
> getpasswd h = do
>     wasEnabled <- hGetEcho h
>     hSetEcho h False
>     str <- hGetLine h
>     hSetEcho wasEnabled
>     return str

Should one enclose this in 'bracket'?
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to