Skip to content

Conversation

@cartermp
Copy link
Contributor

Addresses #28.

Still need to:

  • Flesh out the example of why query syntax is more powerful than API syntax
  • Link to more resources at the end of the article
  • Adjust the Primer to point to this article and potentially be re-worded

/cc @richlander @blackdwarf @terrajobst for review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add C# and VB examples to that wikipedia page? There is an F# sample there.

I know what you mean by "native", but perhaps we can use a less overloaded term. I think of the "native" approach as relying on language keywords.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, weren't higher-order functions already partially supported via delegates, and especially anonmyous delegates? Also, the above sentence reads like F# already had LINQ before C# and VB.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add C# and VB examples to that wikipedia page? There is an F# sample there.

Yep, will do.

Hm, weren't higher-order functions already partially supported via delegates, and especially anonmyous delegates?

Yes; Action and Func are examples of this (and they're used in the API). I'm calling it out because it's one of the two ways you write LINQ.

Also, the above sentence reads like F# already had LINQ before C# and VB.

Changing this to be its own sentence.

@cartermp
Copy link
Contributor Author

Updated to address comments @richlander and @blackdwarf made.

@richlander
Copy link
Member

Looks good. Thanks!

Can you rebase and merge?

@richlander
Copy link
Member

@cartermp Sure you did that right? Try to squash that down to one commit.

@cartermp
Copy link
Contributor Author

Yeah I'm fighting with git rebase right now because it's been giving me a noop since this morning.

Adjusting the primer to advertise LINQ and link to a more in-depth
article.  This article covers the essential things to know about LINQ, why
LINQ is awesome, and provides numerous snippets of code to demonstrate its
capabilities.  Also briefly covers PLINQ.
@cartermp
Copy link
Contributor Author

Done! I lack write access to the repo. Should @richlander or @blackdwarf handle the final merge?

@richlander
Copy link
Member

Thanks @cartermp!

richlander added a commit that referenced this pull request Oct 13, 2015
@richlander richlander merged commit 2bfdf7b into dotnet:master Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants