Skip to content

Commit a0d0ffb

Browse files
pblasucciedgarfgp
andauthored
Updates reflecting FS1091 (UoM for more typs) (#37)
Updated the chapter on units of measure, and the introduction, to reflect the changes introduced by [FS-1091](https://github.com/fsharp/fslang-design/blob/main/FSharp-6.0/FS-1091-Extend-Units-of-Measure.md). --------- Co-authored-by: Edgar Gonzalez <edgargonzalez.info@gmail.com>
1 parent b7d8412 commit a0d0ffb

File tree

3 files changed

+122
-144
lines changed

3 files changed

+122
-144
lines changed

spec/front-matter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and does not yet incorporate all RFCs since F# 4.1 (including some of the 4.1 RF
1010
| --- | --- |
1111
| FS-1005 | underscores in numerical fields |
1212
| FS-1006 | struct tuples |
13+
| FS-1091 | units of measure for more types |
1314

1415
## Notices
1516

spec/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ let htmlOfSites =
264264

265265
By using asynchronous workflows together with other CLI libraries, F# programs can implement parallel tasks, parallel I/O operations, and message-receiving agents.
266266

267-
### Strong Typing for Floating-Point Code
267+
### Strong Typing for Numerical Code
268268

269-
F# applies type checking and type inference to floating-point-intensive domains through *units of measure inference and checking*. This feature allows you to type-check programs that manipulate floating-point numbers that represent physical and abstract quantities in a stronger way than other typed languages, without losing any performance in your compiled code. You can think of this feature as providing a type system for floating-point code.
269+
F# applies type checking and type inference to numerically-intensive domains through *units of measure inference and checking*. This feature allows you to type-check programs that manipulate numerical values that represent physical and abstract quantities in a stronger way than other typed languages, without losing any performance in your compiled code. You can think of this feature as providing a type system for numerical code.
270270

271271
Consider the following example:
272272

0 commit comments

Comments
 (0)