Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

F# does exactly this, except it understands the rules of units cancelling etc.


Woah TIL. I've been looking for a similar language, something that I can do Physics in without having to worry about units/constants. Till now I've used WolframAlpha or just Google. Do you think F# is suited for this, or do you suggest other alternatives?


F# definitely has the most complete implementation that I've seen, I'm sure other languages would let you hack something together though.

https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: