Skip to content

Go support for programmers familiar with other common programming languages

License

Notifications You must be signed in to change notification settings

Guest-615695028/comp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/Guest-615695028/comp

Go support for programmers familiar with other common programming languages, such as C/C++, Java, Javascript, Python.

missing operators

  1. Cond(a, b, c): Conditional operator a ? b : c
  2. Null(a, b): Nil-checking operator a ?? b i. e. a!=nil ? a : b
  3. Value(value, error): Returns the error if so, value if not.
  4. Case to Boolean type: Bool(v)
    • Numbers: whether v is non-zero;
    • Strings: whether v is non-empty;
    • nil-Testible Objects viz. pointer, channel, function, interface, map, and slice types: nil to false, others to true;
    • Arrays and structures: always true as for JavaScript empty array [] and empty object {}.

About

Go support for programmers familiar with other common programming languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages