-
Notifications
You must be signed in to change notification settings - Fork 790
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
Should FSharpList`1 be sealed? #123
Comments
Since this affects the compiled form of FSHarp.Core.dll, this is a feature request. Closing this in favour of the F# Language User Voice tracking entry http://fslang.uservoice.com/forums/245727-f-language/suggestions/7017131-make-f-union-types-like-list-that-have-no-subty |
dsyme
added a commit
that referenced
this issue
Feb 13, 2015
fixes #123 closes #143 commit 5566c99ebc936ad16081dda5f9a6c9754d4e095d Author: latkin <[email protected]> Date: Fri Feb 13 12:55:07 2015 -0800 Workaround for lack of Type.IsSealed in some portable profiles commit 7bf077f Author: Don Syme <[email protected]> Date: Fri Feb 13 10:53:42 2015 +0000 fix codegen tests commit cec8ada Merge: 95cc10d ac85db7 Author: Don Syme <[email protected]> Date: Fri Feb 13 09:57:44 2015 +0000 Merge branch 'fsharp4' of http://github.com/Microsoft/visualfsharp into fix-123 commit 95cc10d Author: Don Syme <[email protected]> Date: Fri Jan 30 08:30:24 2015 +0000 update baselines commit 3050f4f Author: Don Syme <[email protected]> Date: Thu Jan 29 16:27:55 2015 +0000 fix test mistake commit 5be64f6 Author: Don Syme <[email protected]> Date: Thu Jan 29 12:50:07 2015 +0000 update baselines of tests commit 99a552c Merge: d91cb38 d17d429 Author: Don Syme <[email protected]> Date: Thu Jan 29 12:22:05 2015 +0000 Merge branch 'fsharp4' of http://github.com/Microsoft/visualfsharp into fix-123 commit d91cb38 Author: Don Syme <[email protected]> Date: Thu Jan 29 10:18:54 2015 +0000 NOP commit to run appveyor commit 426f2a2 Author: Don Syme <[email protected]> Date: Tue Jan 27 16:43:43 2015 +0000 add extra tests for IsSealed commit 8dc04ab Author: Don Syme <[email protected]> Date: Tue Jan 27 16:36:41 2015 +0000 Fix #123 - Union types without sub-classes should be sealed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
originally opened at codeplex by marten_range
Inheriting a List<'T> in F# is forbidden:
However creative C# developers can do this:
IMHO FSharpList should include the sealed flag to prevent misuse.
Adding sealed to FSharpList could, I guess, introduce a regression for developers that are overriding FSharpList but I suspect it's a quite rare regression.
Mårten
The text was updated successfully, but these errors were encountered: