Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StringReader provider #77

Merged
merged 3 commits into from
Feb 14, 2017

Conversation

mexx
Copy link
Member

@mexx mexx commented Jan 23, 2017

relates #71
without encoding support

@mexx
Copy link
Member Author

mexx commented Feb 8, 2017

Ping 🏓 @vasily-kirichenko @sergey-tihon @forki

@vasily-kirichenko
Copy link
Contributor

What about the review?

@dsyme
Copy link
Contributor

dsyme commented Feb 13, 2017

What about the review?

@vasily-kirichenko Which review? thx

@vasily-kirichenko
Copy link
Contributor

This one:

image

Can you see it, guys cannot you?..

@sergey-tihon
Copy link
Member

@vasily-kirichenko Seems like you did not complete (publish) review. We see nothing

match Path.IsPathRooted(path) with
| false -> Path.Combine(resolutionFolder, path)
| true -> path
match File.Exists(filePath) with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use if..then..else

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same control structure as in FileSystemProviver.
For me a pattern match reads better, but sure it's a matter of taste.
Which style should I follow?

| false -> Path.Combine(resolutionFolder, path)
| true -> path
match File.Exists(filePath) with
| false -> failwith (sprintf "Specified file [%s] could not be found" path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use failwithf

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied over from FileSystemProvider. Will change, as not error prone any more with the warning for extra arguments on falwithf.

@vasily-kirichenko
Copy link
Contributor

Damn. Github is too awesome for me :(

@vasily-kirichenko vasily-kirichenko merged commit e2104ab into fsprojects:master Feb 14, 2017
@vasily-kirichenko
Copy link
Contributor

Thanks for contribution!

@mexx mexx deleted the StringReaderProvider branch February 14, 2017 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants