Skip to content

0x9n0p/gosharp

 
 

The GoSharp Programming Language

GoSharp is an open-source programming language forked from Golang.

Features

Immediate Return #1

Imagine we have a function named 'Callee' that returns an error. If we want to handle the error, we need to use an if statement to check the error and return it if that isn't nil. It's simple and is one of the reasons that we love Golang! But, at least 3 lines of code will be added to our caller function's body.
With this feature, instead of using if statements, we can use a question mark after the right parenthesis!

func caller() error {
  callee()?
  callee2()?
  return nil
}

Install From Source

Make sure you have Golang installed.

$ go version
go version go1.21.6 linux/amd64

Clone source code and build the entire project

git clone https://github.com/0x9n0p/gosharp.git && cd gosharp/src && ./make.bash

Export bin directory to find the compiled tools

export PATH="$GOPATH/src/gosharp/bin:$PATH"

And now, if you run the version subcommand, you must see the gosharp version too.

$ go version
gosharp version 1.0-nightly
go version devel go1.23-0ba426291c Thu Jun 6 14:02:00 2024 +0330 linux/amd64

Contributing

Feel free to send Pull Requests, fix typos, grammatical mistakes. We appreciate your help!

About

The GoSharp programming language

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • Go 88.4%
  • Assembly 6.1%
  • HTML 5.1%
  • C 0.2%
  • Shell 0.1%
  • Perl 0.1%