Araq/Nimrod — Issue #76: Converter for string => TFile
Author: Tass
Created: 2011-12-17 12:37:50+00:00
State: open

proc train(model: TLanguageModel, file: string) =
var handle = open(file)
model.train(handle) # or result = model.train(handle)
close(handle)

Would be an idea for a converter, but the `close` part doesn't really fit. Any other idea?