dotnet / dotnet/vblang

More concise syntax for lambdas

Open
#371 31 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

While VB’s use of the full-length Function keyword makes the language easier to approach and learn, it makes it harder to actual work with.

I use linq a lot and when chaining methods the length of the line quickly becomes an issue. I suggest using a conditional contextual keyword Fn, which would be the equivalent of Function if there was no Fn in scope as a compromise between providing context and conciseness and a breaking change.

I am familiar with the history,
http://www.panopticoncentral.net/2006/12/08/lambda-expressions-part-i-syntax/,
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/3741764-allow-c-style-lambda-expression-syntax-in-vb-net, but feel that a shorter syntax is really needed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.