SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
287 stars 25 forks source link

Only prefix IDisposible object construction with "new" #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Idiomatic F# object construction omits "new" prefix, e.g. just 
Dictionary<_,_>() instead of new Dictionary<_,_>(), though IDisposible objects 
get a warning without the prefix. Note this also induces different precedence 
for the two cases.

Original issue reported on code.google.com by stephen....@gmail.com on 7 Aug 2011 at 6:23

GoogleCodeExporter commented 9 years ago
Going to sit on this one: F# signature printing uses common type aliases for 
printing constructors, which can cause problems when omitting "new".  For 
example, "new string('c', 3)" is not the same as "string('c', 3)",  the latter 
is the "string" conversion function.

Original comment by stephen....@gmail.com on 7 Aug 2011 at 6:50

GoogleCodeExporter commented 9 years ago
Decided we "WontFix": there is little benefit in removing the "new" prefix and 
the ambiguity it would introduce isn't worth it.

Original comment by stephen....@gmail.com on 14 Dec 2011 at 5:02