rumlang / rum

Functional language, easily extensible and possible (Lua features with LISP dialect and functional) to be embarked on software Go!
https://www.rumlang.org/
MIT License
157 stars 13 forks source link

runtime: open file #87

Open avelino opened 6 years ago

avelino commented 6 years ago
(package main
  (let csv (open "file.csv"))
  (print csv))
trumae commented 6 years ago

It's like the clojure slurp (https://clojuredocs.org/clojure.core/slurp)? In that case, the name open is the better choice??

crgimenes commented 6 years ago

if csv is a file descriptor ok, is is a string I prefer load or read