This commit is contained in:
Umur Ozkul 2022-07-05 05:54:56 +02:00
parent 6edacc78e4
commit 742fc10e0d

View File

@ -12,7 +12,10 @@ open Expect
// ----------------------
module FooImplementation = {
let fooNumber = 0.0
// As this is a Rescript module, functions can use other functions in this module
// and in other stdLib modules implemented this way.
// Embedding function definitions in to switch statements is a bad practice
// - to reduce line count or to let fooNumber = 0.0
let fooString = "Foo String"
let fooBool = true
let makeFoo = (a: string, b: string, _environment): string => `I am ${a}-foo and I am ${b}-foo`