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

[FS-1080] Add new syntax option for Float32. #7839

Merged

Conversation

gdziadkiewicz
Copy link
Contributor

@gdziadkiewicz gdziadkiewicz commented Nov 10, 2019

@cartermp
Copy link
Contributor

Thanks for the trial implementation @gdziadkiewicz - I've tagged this as Needs RFC. If either you or @abelbraaksma submits a PR that is approved, we'll remove the tag.

@cartermp
Copy link
Contributor

@TIHan @dsyme @KevinRansom can you please take a look?

TIHan
TIHan previously requested changes Nov 10, 2019
Copy link
Contributor

@TIHan TIHan left a comment

Choose a reason for hiding this comment

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

Implementation is great.

The one thing missing is locking the feature to a language version and having tests cover that. This is partly our fault as we need better ways to handle language version in our tests. I have to do this anyway with the 'default interface method consumption' feature, so I may work a lot on tests this week.

@gdziadkiewicz
Copy link
Contributor Author

@TIHan Then I will wait for your work to copy the approach.

@gdziadkiewicz gdziadkiewicz changed the title Add new syntax option for Float32. WIP Add new syntax option for Float32. Nov 11, 2019
@dsyme
Copy link
Contributor

dsyme commented Nov 11, 2019

Agreed with @TIHan - just needs the language version implementation

@KevinRansom
Copy link
Member

This is nice, lang version might be a bit tricky.

@KevinRansom
Copy link
Member

Okay Lexbuffer<'Char> has supportsLanguageVersion:

https://github.com/dotnet/fsharp/blob/release/fsharp5/src/utils/prim-lexing.fsi#L112

And it's available right here:

| ieee32

So I guess not so tricjky,

@gdziadkiewicz gdziadkiewicz changed the title WIP Add new syntax option for Float32. Add new syntax option for Float32. Nov 19, 2019
@gdziadkiewicz
Copy link
Contributor Author

@TIHan Can you check my approach to the language version?

@cartermp
Copy link
Contributor

@KevinRansom can also take a look, he did the fun work of backporting LangVersion into various merged features for F# 4.7 🙂

@gdziadkiewicz gdziadkiewicz changed the title Add new syntax option for Float32. [FS-1080] Add new syntax option for Float32. Nov 22, 2019
Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

Looks good overall, some minor quibbles

src/fsharp/LanguageFeatures.fs Outdated Show resolved Hide resolved
# Conflicts:
#	src/fsharp/LanguageFeatures.fs
@gdziadkiewicz
Copy link
Contributor Author

@cartermp Is there anything more that I should do?

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

This looks good @gdziadkiewicz, thanks! We'll need review from @dsyme to see this merged, though.

@dsyme
Copy link
Contributor

dsyme commented Jan 7, 2020

LGTM

@cartermp
Copy link
Contributor

cartermp commented Jan 7, 2020

@gdziadkiewicz looks like there's some conflicts, but directly fixing them may cause a build break. Could you take care of that? After that's done we'll merge this in. Great work, and thanks for the patience!

Copy link
Member

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

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

Looks great. I'm going to move it to fsharp5 with all of the other fsharp5 language features. However, that is all coming back to master shortly.

@KevinRansom KevinRansom changed the base branch from master to release/fsharp5 January 7, 2020 18:05
@KevinRansom KevinRansom dismissed TIHan’s stale review January 7, 2020 19:24

Taken care of by author.

@KevinRansom KevinRansom merged commit 0534b65 into dotnet:release/fsharp5 Jan 7, 2020
@gdziadkiewicz gdziadkiewicz deleted the feature/Float32WithoutDot branch January 7, 2020 22:17
@abelbraaksma
Copy link
Contributor

@gdziadkiewicz, the link in the original post gives a 404, was it moved? Incorrect: https://github.com/fsharp/fslang-design/blob/master/RFCs/FS-1080-float32-without-dot.md.

@Happypig375
Copy link
Member

@abelbraaksma https://github.com/fsharp/fslang-design/blob/master/preview/FS-1080-float32-without-dot.md

@abelbraaksma
Copy link
Contributor

abelbraaksma commented May 29, 2020

@Happypig375, thanks. I've reported the underlying issue that we ought to expect all RFCs to be in one place, or be redirected if moved.

auduchinok added a commit to JetBrains/resharper-fsharp that referenced this pull request Oct 29, 2020
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.

7 participants