Visual Studio
Welcome to the Visual Studio UserVoice site. Let us know what you would like to see in future versions of the Visual Studio suite of products. This site is for suggestions and ideas. If you need to file a bug, visit the Visual Studio Connect site: http://connect.microsoft.com/visualstudio.
ASP.NET Runtime/Web Tooling suggestions have moved! All your ideas, including your votes, have been transferred and are searchable in the ASP.Net Uservoice forum. Please submit any new ASP.NET Runtime/Web Tooling suggestions, or vote on existing suggestions by going to http://aspnet.uservoice.com.
We look forward to hearing from you!
Thanks – Deon Herbert
Visual Studio Team
-
Local functions not closing over values should be "singletons"
Every time a function with a local-function is called, it allocates memory. In Steel Bank Common Lisp, such functions are "singletons", created once when JIT'ed, provided that it doesn't close over existing bindings. They are also pointer-equal in SBCL.
Please provide a "function" type distinct from a "closure" type to free the user from having to use methods or global functions in inner-loop code.
10 votes -
Ability to make a Record a struct type
Record types should be able to be declared as a struct using an attribute.
9 votes -
Highlight variable usage in F#
It should be possible to mark all usages of a certain variable. The type of the variable is already inferred and shown when hovering over it. It'd be great if all places where the variable is used are highlighted, e.g. by setting a background color on the variable name. It'd be great if this is possible for several variables.
9 votes -
Don't implement interfaces explicitly in F#
F# implements interfaces explicitly, causing excessive casting when working with or exposing classic C#-style interface heavy code.
9 votes -
Extension Operators
Given that the let (operator) = .. syntax ends up blocking all existing uses of that operator the suggested workaround is to create a traditional class and add an operator as a member. However, this of course is not possible with existing types. Most problematic are the basic value types which are most often the target of operators. This is very frustrating for those of us who are trying to make aesthetically beautiful DSLs in F#.
Ideally I'd like to be able to overload operators without changing previous dispatching via the standard let syntax. However, this seems unlikely due to…
9 votes -
improve FsYacc and FsLex intellisense and IDE support
The lack of intellisense support makes writing parsers and lexers more difficult than it has to be.
8 votes -
Support conjunctional operator
'a < x < b' means 'a < x && x < b'. (but x is evaluate only once)
Python implements this feature.7 votes -
I would like better integration with ASP.NET and other core frameworks like WPF
There is a lot of manual labor involved trying to integrate F# with WPF, ASP.NET, etc. I think it should be promoted to a first class citizen in Visual Studio just like C#. You guys have been neglecting it for years. It's like "if you want to play around with some Math or low level Algorithms, use F#, else use C#". We take it just as serious as any other language and would like to fully enjoy its riches. Being forced to default to C# is very frustrating. All you want to do is be able to program in your…
7 votes -
Support IScheduler implementations for executing Async workflows
System.Threading.Tasks and Rx both support implementations of IScheduler. The ability to "parameterize concurrency" is quite powerful. The only options at the moment are selecting whether to use Async.Start on the ThreadPool or Async.StartImmediate on the current thread. Other options, such as an EventLoop or TestScheduler, are not available in F#.
7 votes -
Provide Solution Explorer Support in VS11 for F#
improve the solution explorer for F# - let us expand .fs files to view types/modules and methods like you can in C# and every other "first class" language. In addition let us use the "search solution explorer" bar for F# types/symbols as well and improve the "goto xyz" support for C# -> F# and vice versa
7 votes -
F# dereference operator (like C++'s ->)
Working with F#'s ref generic type is ugly. Too much need for (!val) constructs. Either increase (!) operator priority, or add C++-like -> operator, which would allow direct access through reference to its instance members.
6 votes -
Tools for visualizing active variables in F#
Add a way of visualizing live (objects/functions/variables) in F# interactive. Possibly as simple as a PropertyGrid that shows active variables in memory. By adding the abiity to see what is in memory while using F# it becomes a VERY powerful data exploration tool. A few minor addtions of charting and grid output and this would be one of the best Data Mining tools available.
6 votes -
dynamic -keyword support for F#
There are times that eg. F# value restriction could be solved with runtime dynamic code. C# has dynamic.
I wish F# could use dynamic as it uses mutable:
let I x = x
let dynamic F = II6 votes -
Allow use of '.' to bind functions tightly to their arguments
Compare the C# code:
var sb = new StringBuilder();
sb.Append("hello").Append("world").Append("foo").Append("bar");with F#
let sb = new StringBuilder()
(((sb.Append("hello")).Append "world").Append "foo").Append "bar"This proposal is to allow a '.' to tightly bind a function to it's arguments as long as the arguments are enclosed in parens. Eg:
let sb = new StringBuilder()
sb.Append.("hello").Append.("world").Append.("foo").Append.("bar")I think that this version is much cleaner has the benefit of not breaking existing syntax (I don't know the details of the F# grammar so could be wrong about that) and is also analogous to the way F# tightly binds the indexing operator using ".[x]" notation so…
6 votes -
Add virtual auto-implemented properties to F#
abstract Users: ICollection<User> with get,set
default val Users = Unchecked.defaultOf<ICollection<User>> with get,setmember val is awsome but when a property must be virtual (such as a delay-loaded collection in Entity Framework) you have to switch back to the manual backing store.
6 votes -
allow mutually recursive references between function definitions and type definitions
If we allowed a "type" or "let" keyword to optionally follow an "and" keyword F# could allow mutual recursion between types and functions without adding any ambiguity to the grammar.
For a simple use case see http://stackoverflow.com/questions/7051672/f-is-mutual-recursion-between-types-and-functions-possible
5 votes -
5 votes
-
correct compiler-generated exception code
F# compiler sometimes generates exceptions such as this:
L_001d: ldstr "Dynamic invocation of op_Explicit is not supported"
L_0022: newobj instance void [mscorlib]System.NotSupportedException::.ctor()
L_0027: throwit incorrectly calls ctor() instead of ctor(String)
5 votes -
Thoroughly document "hidden" features in F#
F# has a lot of tricky aspects that aren't well-documented.
One example is anything to do with the `inline` keyword:
* Member constraints and member invocation expressions.
* How dynamic and static type parameters interact, such as when writing a member invocation expression.
* What is the effect of the `inline` keyword on different sorts of members.Another aspect is designing computation expressions using the custom operation attribute.
It would be great if there could be some more thorough documentation on these things. Sometimes it's really trial and error.
4 votes -
Short member lambdas with $ (or other) sign
To be used like that:
items |> Seq.map $.Name4 votes
- Don't see your idea?