Skip to content

Commit 912082c

Browse files
committed
strongly typed
1 parent 37f6bf1 commit 912082c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/ch02.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ function getCoordinates() {
727727
var { x, y } = getCoordinates()
728728
----
729729

730-
The case for default option values bears repeating. Imagine you have a `random` function which produces random integers between a `min` and a `max` value, and that it should default to values between 1 and 10. This is particularly interesting as an alternative to named parameters in other languages like Python and C#. This pattern, where you're able to define default values for options and then let consumers override them individually, offers great flexibility.
730+
The case for default option values bears repeating. Imagine you have a `random` function which produces random integers between a `min` and a `max` value, and that it should default to values between 1 and 10. This is particularly interesting as an alternative to named parameters in languages with strong typing features, such as Python and C#. This pattern, where you're able to define default values for options and then let consumers override them individually, offers great flexibility.
731731

732732
[source,javascript]
733733
----

0 commit comments

Comments
 (0)