Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 4.6 KB

README.md

File metadata and controls

31 lines (27 loc) · 4.6 KB

VB Language Ideas

This repo is a collection of ideas and concepts, related to the Visual Basic programming language.

No. Title Synopsis
1 Default Optional Parameters Optional arg As String
Default Optional Parameters
2 Deresticted Operators Removes the restriction on compliementy-pair of operators. Such < and >.
Derestricted Operators
3 TypeOf Many TypeOf expr Is (Of T0 .., Tn)
Extend TypeOf to cover multiple types.
TypeOf Many Expressions
4 Range Syntax fromExpr To uptoExpr
fromExpr To uptoExpr Step stepExpr
Range Expression
5 ZIP Query Syntax From x In xs Zip y In ys
Linq Zip Clause
6 For Each With Index For Each x As Tx With idx In xs
For-Each block that also includes the sequence index of the item.
For Each With Index
7 Guarded Statements statement When expr
Guarded Statements
8 With Clause With { ... }
recursive clause. With Clause
9 Immutable Immutable.
10 Structural Inheritance Structure Inheritance
11 Const Blocks Const type ... End Const
Constant Blocks
12 Un/Checked Expressions Unchecked expr
don't use overflow checks.
UnChecked Expressions
13 Un/Cheked Blocks Unchecked ... End Unchecked
don't use overflow checks within this block.
UnChecked Blocks
14 Type Clause Case Is type
Case Is type Into expr
Case IsNot type
Extend Case clauses to cover type selection.
[Type Clause
15 Into Declarations (TypeOf expr Is Example Into thisExample
Put some aspect of expression (on the left side) into the declaration / expression on the right side. Into Declarations
16 Out Declarations Integer.TryParse( text, Out value )
Declare a variable whilst calling a method.
Out Declarations
17 Flags Enum Operators Operators that make it easier to make use of <flags> Enum.
IsFlagsSet / SetFlag / ClearFlag / AnyFlagSet
Flags Enum Operators
18 Derestict Method Body Placement Permit the declaring of a method on the same line as it signature, provide us use : as the statement continuation.
Method Body Placement
19 With Using Block Add the With Block ability to Using Block
With_Using_Block
20 (LINQ) Zip Query Syntax Extends the LINQ Query syntax with the Zip operator
Linq Zip Clause
21 Named Exit Statements Allow Exit For loopIdentifer
22 Named Continue Statements Allow Continue For loopIdentifer
23 Local Imports Namespace local imports