+ 1
Can I combine c# code with Go?
Is there a way to combine both of them , like how you can put ruby in c?
7 Réponses
+ 1
I DON'T THINK SO 🙄
+ 1
NEZ why?
+ 1
I searched in google
+ 1
NEZ is becuase go is not really OOP? , well it has scopes to define where variables can be used but there are not clases or inheritance
+ 1
You can’t manually do that, some languages may support other languages, for example you can write C in C++ , or Assembly in C++ , but Go & C# don’t support that , you should write a compiler in Golang that can understands C#
, and it is real ;
You can search for Gopherjs , it is a Compiler that can understand javascript code ! So you write javascript in a golang way and then it complies it !
0
Go support write native functions in ASM (lowlevel). Take a look at its github repository. (*.s files)
https://golang.org/src/sync/atomic/
Also can derive function implementations by OS and arch suffixing files. (*_windows.go, *_unix.go, *_amd64.go ...)
https://golang.org/src/crypto/rand/
Also there are any backports to transpile javascript or python
- 2