Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Matt Welke
Matt Welke
@mattwelke@mstdn.ca  ·  activity timestamp 7 days ago

I know many devs find pointers and nulls evil and prefer using values only, especially in the Go world. But to an untrained eye, "7pm Dec 31st, 1969" probably seems arbitrary and confusing. A null value would have been useful here.

#programming #software #SoftwareGore #golang

Error screen at an airport in Toronto in January. "Last success" shows "1969-12-31 19:00:00".
Error screen at an airport in Toronto in January. "Last success" shows "1969-12-31 19:00:00".
Error screen at an airport in Toronto in January. "Last success" shows "1969-12-31 19:00:00".
  • Copy link
  • Flag this post
  • Block
Federation Bot
Federation Bot
@Federation_Bot replied  ·  activity timestamp 6 days ago

@mattwelke

this is not Go's zero value for Time. it's zero UNIX timestamp in the UTC-5 timezone. i don't think it's intentional. probably that's how they store it in the database.

  • 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.1-beta.23 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct