Navigation Menu

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

Remove the C# Freeze API #654

Merged

Conversation

jtattermusch
Copy link
Contributor

Based on the pushback in the API review, I think the best thing to do is to remove the Freeze API for now (as requested by @pherl).
We can reintroduce this once we reach decision if we should support Freeze or not. Reverting this change should be easy, applying an inverted diff and regenerating code is pretty straightforward.

@jskeet
Copy link
Contributor

jskeet commented Jul 30, 2015

LGTM so far, although I'd probably have gone further. Merging, and we can work out whether to remove more later (but not much later).

jskeet added a commit that referenced this pull request Jul 30, 2015
@jskeet jskeet merged commit 7a0effb into protocolbuffers:csharp-experimental Jul 30, 2015
@MHDante
Copy link

MHDante commented Jun 8, 2018

As a curiosity, is this change permanent? The mutability of messages has bit my team few times. I'd be interested in seeing the reasoning for removing it.

@jskeet
Copy link
Contributor

jskeet commented Jun 8, 2018

Yes, I'd be very surprised if we reimplemented Freeze at this point.

@Falco20019
Copy link
Contributor

I would also like to see immutability come back some time since it would fit our needs better and would fit better with the other platforms.

@jskeet
Copy link
Contributor

jskeet commented Jul 10, 2019

@Falco20019: I think at this point it would make more sense to have an entirely separate generator (and support library) for immutable protobufs. I'm glad we removed Freeze - it's a pain working with types that might be immutable or might not be.
If record types end up in C# 9, I can easily imagine we might want to have a version that works with those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants