Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Marc
@corpsmoderne@mamot.fr  ·  activity timestamp last week
@blami @graves501 I think I won't be able to enjoy myself writing code in a language lacking tagged union anymore.

Yes I'm spoiled, but it's not #rust 's fault, it's #haskell .

It's just that when came the moment to make a choice between learning Go or Rust, the choice was quite easy.

  • Copy link
  • Flag this post
  • Block
Borup
@borup@masto.hackers.town  ·  activity timestamp last week
@corpsmoderne @blami @graves501 Rust enums (sum types I guess) are indeed one of the things that make Rust fun to work in.

I had been cought in JavaScript and PHP land a while before looking into Go and Rust.

It felt to me like Go made a lot of the same compromises as PHP.

In Rust I have fun programming again.

  • Copy link
  • Flag this comment
  • Block
Periodic
@periodic@mastodon.social  ·  activity timestamp last week
@corpsmoderne @blami @graves501

Full algebraic types opens up so much more expression in code.

OOP supports unions through subtyping and interfaces, but encapsulation ruins it because it makes the code path un-inspectable. You never know what code might actually be called at runtime.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct