News for hackers. Stuff that matters.
Re:Phantom Types in Gleam by daniel5151 on Saturday February 27, 2021 @01:08PM (#26286746)
I know it's a toy example, but it's a _really bad idea_ to use a float as a backing type for currency.

https://stackoverflow.com/questions/3730019/why-not-use-doub...

Re:Phantom Types in Gleam by pd-andy on Saturday February 27, 2021 @01:49PM (#26287087)
Ha yes, very true!
Re:Phantom Types in Gleam by heavenlyblue on Saturday February 27, 2021 @04:01PM (#26288134)
Have you worked in finance?