Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
stfn
stfn
@stfn@fedi.stfn.pl  ·  activity timestamp 4 days ago

I'm working through the #Rust book. Three things so far:

  • I keep forgetting about adding semicolons
  • if only accepts actual Booleans, and not anything looking truthly/falsely
  • there is no explicit return statement, just the last expression is returned?!

I'm a Python guy, and Rust is so amusingly different, I need to consciously think about all the things that for me are muscle memory in the language I am used to.

  • Copy link
  • Flag this post
  • Block
Brian :cupofcoffee: :rss:
Brian :cupofcoffee: :rss:
@brianb@fosstodon.org replied  ·  activity timestamp 4 days ago

@stfn No return statement would mess me up.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct