summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTomáš Hübelbauer <tomas@hubelbauer.net>2020-10-20 13:36:19 +0200
committerGitHub <noreply@github.com>2020-10-20 13:36:19 +0200
commit725c7caa027ff9e04ad514bade72163522c8d28a (patch)
tree372aa4e26b8ba4895df0c9afd7132bb290dd0811 /compiler
parent5e9dd81baa5781c15f95de45528cc072804ce969 (diff)
downloadNim-725c7caa027ff9e04ad514bade72163522c8d28a.tar.gz
Remove bit about opening files not raising (#15654)
Resolved #473 

I am removing this bit because this advice to not throw on recoverable-from cases like a file failing to open is actually not respected by Nim standard library. `readFile` and `readLines` both throw and exceptions must be used as a method of control flow for the recovery from that. There are alternatives, like opening a file handle instead of using these helpers, but that's less convenient than these helper methods for cases where you really want to just slurp up a file to memory and use a fallback value if it doesn't exist or is for whatever reason not readable.
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions