-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
to the language and programming IO play an important role. | ||
Scala std doesn't have any support for generating output. Scala programmers use `Java.io` | ||
or `Java.nio` for writing on disk. On the other hand, the incopatibility between Java File | ||
and Scala File makes it hard to have nice Scala code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you show a code snippet that uses Java nio to write to a file, and contrast with a snippet that uses this API?
http://docs.oracle.com/javase/tutorial/essential/io/file.html has a few examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done! let me know if it's enough or if I have to add anything else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From SLIP committee meeting,
Concerns: Source is somewhat discouraged in its current form, either needs to be deprecated or reworked.
If you add Target with the same flaws it is unlikely to be accepted, however the idea of reworking Source in addition has some favor.
Needs to find a "slipherd".
Maybe a good target for an IO expert group
Jon Pretty - suggestion
Jesse Eichar - suggestion
Haoyi Li - suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throwing my hat in here. I wrote a library to make I/O in Scala intuitive and I got a lot of positive response to it:
https://github.com/pathikrit/better-files
example for java was added
Add open questions about zip and signature of `flatMap`
Closing since the SLIP process is being replaced by the new Scala Platform Process (http://www.scala-lang.org/blog/2016/11/28/spp.html). SLIP proposers are encouraged to resubmit under the new process. |
It's a first version of a SLIP doc for adding
Target
to IO and completing thescala.io