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 mxey

19 hours ago

how would that look with type inference?

You can write

var x = 5

how would that work if the type had to be first? Languages that added inference later tend to have “auto” as the type which looks terrible.

0 comments

mxey

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities