Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by ethin

2 days ago

Are you sure about that? When backwards compatibility comes into the picture people tend to bend over backwards.

3 comments

ethin

Reply

_flux  2 days ago

Backwards compatibility with what? Rust has always has had enum also for this exact case, to avoid encoding sentinels as strings or pointers.

slopinthebag  2 days ago

im quite positive the only rust programmer who would do this is a C programmer who doesn't understand rust

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities