Mads Torgersen takes us on a quick look at some C# 7 features by refactoring a fibonacci series generator.
Here's the code: https://github.com/CodeConversations/csharp7-features-with-mads-torgersen
Great video, more of these please!
Nice video, succinct and informative, looking forward to playing with this.
Just long enough to be a break from what I'm doing. Nice and dense, teaching me a number of things in 10 minutes. Very cool. Thanks.
I think the term "Deconstruction" is not suitable here.
Is it necessary to have two ways to write a deconstruction expression?
var (c, p) = Fib(x);
(var c, p) = Fib(x);
I'm not sure which I like better. If I had to chose I'd pick the first, seems more intuitive to me, but only slightly.
I think it is quite suitable for me
any news / code convertions topic about vb.net ?
Fib(11) = 89http://www.numberempire.com/fibonaccinumbers.php?number=11(off by 1 ;))
@destinchfield: It's just that there's three types in that expression and they're all optional. You gotta put var somewhere though so it knows your declaring a new thing and it shouldn't complain.