Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Null-object/V-(Vlang)/null-object.v
Normal file
8
Task/Null-object/V-(Vlang)/null-object.v
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Null or nil not used, default values for various primitive types/variables instead:
|
||||
|
||||
a_string :=''
|
||||
a_bool := false
|
||||
an_int := 0
|
||||
[3]string{} // ['', '', '']
|
||||
[3]bool{} // [false, false, false]
|
||||
[3]int{} // [0, 0, 0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue