tag:blogger.com,1999:blog-3761674922653685009.post5768943162365583704..comments2023-11-05T03:40:13.874-08:00Comments on unfold: Complaining about .NET 3.5Jafar Husainhttp://www.blogger.com/profile/15444397760399385108noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3761674922653685009.post-3425339820741137602009-08-03T01:18:23.405-07:002009-08-03T01:18:23.405-07:00情趣用品|情趣用品|情趣用品|情趣|情趣用品|情趣<a href="http://www.sexy288.com/" rel="nofollow">情趣用品</a>|<a href="http://www.sexy5988.com/" rel="nofollow">情趣用品</a>|<a href="http://www.sextoyou.net/" rel="nofollow">情趣用品</a>|<a href="http://www.sextoyou.net/" rel="nofollow">情趣</a>|<a href="http://www.egg168.com/" rel="nofollow">情趣用品</a>|<a href="http://www.egg168.com/" rel="nofollow">情趣</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-51041026624952681712008-05-19T20:51:00.000-07:002008-05-19T20:51:00.000-07:00#1: Agreed#2: Import F#'s or J#'s for now#4: Meh#5...#1: Agreed<BR/>#2: Import F#'s or J#'s for now<BR/>#4: Meh<BR/>#5: typedef (as pure symtactic sugar) is what I want here<BR/>#6: ABSOLUTE MUST!<BR/> <BR/>#3: Concat written like this:<BR/><BR/>static IEnumerable<T> Concat<T>(params IEnumerable<T>[] sequences)<BR/>{<BR/> foreach (var seq in sequences)<BR/> foreach (var item in seq)<BR/> yield return item;<BR/>}<BR/><BR/>Is linear in performance but loses the extension method goodness.IDisposablehttps://www.blogger.com/profile/02275315449689041289noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-45075278649840749122008-05-06T18:01:00.000-07:002008-05-06T18:01:00.000-07:00Judah: Agreed :-).Steven: The cost of using conca...Judah: Agreed :-).<BR/><BR/>Steven: The cost of using concat is not linear. Read the Wes Dyer blog post for an explanation why.<BR/><BR/>Anonymous: Thanks! I found some BigInteger implementations on CodePlex but I wanted something really robust. Looks like this may be the ticket.Jafar Husainhttps://www.blogger.com/profile/15444397760399385108noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-63003115354606228082008-05-06T16:28:00.000-07:002008-05-06T16:28:00.000-07:00I agree that not having BigInteger in the BCL is a...I agree that not having BigInteger in the BCL is annoying but looks like Mono has an implementation available:<BR/><BR/><A HREF="http://www.go-mono.com/docs/index.aspx?link=T%3AMono.Math.BigInteger" REL="nofollow">http://www.go-mono.com/docs/index.aspx?link=T%3AMono.Math.BigInteger</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-7573201636207804432008-05-06T15:25:00.000-07:002008-05-06T15:25:00.000-07:00About #2. There was a good reason why Microsoft di...About #2. There was a good reason why Microsoft didn't ship BigInteger in the final version of .NET 3.5. Just read BCL Team blog:<BR/>http://blogs.msdn.com/bclteam/archive/2008/01/04/where-did-biginteger-go-melitta-andersen.aspx<BR/><BR/>I'm not sure I'm following #3. Isn’t the Enumerable.Concat[T] method what you’re looking for? It functions like this:<BR/>Enumerable.Concat[T](this IEnumerable[T] first, IEnumerable[T] second)<BR/>{<BR/> foreach (T t in first) yield return t;<BR/> foreach (T t in second) yield return t;<BR/>}<BR/><BR/>About #6. I agree. Having compile time support for something like that would be wonderful. I agree with Judah, think of all the unit tests we wouldn’t have to write!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-36037975595265583652008-05-06T11:55:00.000-07:002008-05-06T11:55:00.000-07:00Also, if the C# compiler could enforce pre- and po...Also, if the C# compiler could enforce pre- and post-conditions, including non-null parameter, think of all the unit tests you *wouldn't* have to write!Judah Gabriel Himangohttps://www.blogger.com/profile/10277699587853707632noreply@blogger.comtag:blogger.com,1999:blog-3761674922653685009.post-28853051777669430252008-05-06T11:19:00.000-07:002008-05-06T11:19:00.000-07:00I agree with #1, #3, #5. If feel so strongly about...I agree with #1, #3, #5. If feel so strongly about #6, I've been telling the C# guys to add the Spec# stuff since C# 3 was being designed. I'm really hoping C# 4 sees non-null concepts, pre and post conditions...I just want something that helps us write less buggy code.Judah Gabriel Himangohttps://www.blogger.com/profile/10277699587853707632noreply@blogger.com