+ 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?

24th May 2021, 4:09 AM
PAT engginier
PAT engginier - avatar
7 Answers
+ 1
I DON'T THINK SO 🙄
24th May 2021, 4:14 AM
NEZ
NEZ - avatar
+ 1
NEZ why?
24th May 2021, 4:15 AM
PAT engginier
PAT engginier - avatar
+ 1
I searched in google
24th May 2021, 4:18 AM
NEZ
NEZ - avatar
+ 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
24th May 2021, 4:28 AM
PAT engginier
PAT engginier - avatar
+ 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 !
24th May 2021, 5:10 AM
Nima
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
6th Jun 2021, 4:16 AM
David OrdĂĄs
David OrdĂĄs - avatar