Jump to content

Named parameters: Difference between revisions

m
mNo edit summary
Line 2,096:
 
=={{header|V (Vlang)}}==
1) Vlang allows for struct a struct literal to be passed to the function, instead of named parameters.
 
2) Using this style, fields need not appear in the same order as they are declared.
 
3) If one or more fields are omitted, their default values will be used instead.
 
4) The named parameter feature was deliberately omitted, for greater code readability.
291

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.