←back to thread

Uncertain<T>

(nshipster.com)
444 points samtheprogram | 1 comments | | HN request time: 0.232s | source
Show context
layer8 ◴[] No.45055943[source]
Arguably Uncertain should be the default, and you should have to annotate a type as certain T when you are really certain. ;)
replies(2): >>45056272 #>>45056582 #
nine_k ◴[] No.45056582[source]
Only for physical measurements. For things like money, you should be pretty certain, often down to exact fractional cents.

It appears that a similar approach is implemented in some modern Fortran libraries.

replies(4): >>45057007 #>>45057078 #>>45057151 #>>45060359 #
1. geocar ◴[] No.45060359[source]
> For things like money, you should be pretty certain, often down to exact fractional cents.

That's one way to look at it.

Another is that Money is certain only at the point of exchange.

> It appears that a similar approach is implemented in some modern Fortran libraries.

I'd be curious about that. Do you have a link?