Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.

Adding scala.io.Target #2

Closed
wants to merge 3 commits into from
Closed

Adding scala.io.Target #2

wants to merge 3 commits into from

Conversation

omidb
Copy link

@omidb omidb commented Jun 18, 2015

It's a first version of a SLIP doc for adding Target to IO and completing the scala.io

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.
Copy link
Member

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.

Copy link
Author

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

Copy link
Contributor

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

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
@dickwall dickwall mentioned this pull request Sep 17, 2015
dickwall pushed a commit that referenced this pull request Oct 7, 2015
Add open questions about zip and signature of `flatMap`
@SethTisue
Copy link
Member

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.

@SethTisue SethTisue closed this Nov 30, 2016
@scala scala locked and limited conversation to collaborators Nov 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants