The only language I can think of that has pulled off “compiles to another totaling language” and gained mainstream adoption is typescript, and I’m sure it wouldn’t have done so if it were possible to run in the browser otherwise. Can anyone think of another example?
Borgo is a statically typed language that compiles to Go
31–40 of 559 posts
Re: Borgo is a statically typed language that compiles to Go
#32The only language I can think of that has pulled off “compiles to another totaling language” and gained mainstream adoption is typescript, and I’m sure it wouldn’t have done so if it were possible to run in the browser otherwise. Can anyone think of another example?
Elixir compiles to Erlang, I think.
Re: Borgo is a statically typed language that compiles to Go
#33But introducing a new language is a scary thing.
Re: Borgo is a statically typed language that compiles to Go
#34The only language I can think of that has pulled off “compiles to another totaling language” and gained mainstream adoption is typescript, and I’m sure it wouldn’t have done so if it were possible to run in the browser otherwise. Can anyone think of another example?
Re: Borgo is a statically typed language that compiles to Go
#35The only language I can think of that has pulled off “compiles to another totaling language” and gained mainstream adoption is typescript, and I’m sure it wouldn’t have done so if it were possible to run in the browser otherwise. Can anyone think of another example?
Elixir compiles to Erlang, I think.
Re: Borgo is a statically typed language that compiles to Go
#36Re: Borgo is a statically typed language that compiles to Go
#37They made a coffeescript for go
Re: Borgo is a statically typed language that compiles to Go
#38Why would you target Go?
it's literally the 2nd sentence of README: "It's fully compatible with existing Go packages." It's a nice way to bootstrap ecosystem IMHO. No one wants to use a brand-new language without library support for common tasks.
Re: Borgo is a statically typed language that compiles to Go
#39Earlier quoted context omitted.
This is a terrible take. It's like one of those people who buys a massive over priced knife block with 48 knives in it that they never use. Most go devs have lived through bloated java/php/python/ruby/js projects that become a pile of dependencies. Go is to coding what brutalism is to architecture. Simple, functional, efficient. Dont build a massive dependency chain, dont build magic, repeating yourself is OK. Be an…
I don’t think any of that is contradicted by what this seems to be trying to do. In fact, Go doesn’t make you deal with your errors (you’re free to ignore the returns) whereas this would (via exhaustive pattern match).
Your right, it does not. I will _ =: an error in a throw away script all the time.
I see that in a code review, in production code... Big red flag. This is a departure from an exception, that might be thrown in one place and handled far far away from the code you're looking at.
Re: Borgo is a statically typed language that compiles to Go
#40Having worked on multiple very large Go codebases with many engineers, the lack of actual enums and a built-in optional type instead of nil drive me crazy.
I think I'm in love.
Edit: Looks like last commit was 7 months ago. Was this abandoned, or considered feature complete? I hope it's not abandoned!