Constants of every literal type, used in the same module
The complete source of constants_introduction.ek9, compiled by the EK9 compiler. Shown on constants.html.
#!ek9 defines module site.constants.introduction defines constant limitNumberOfRetries <- true updateErrorLog <- false delimiter <- ':' author <- "Frank Jones" maxNumberOfRetries <- 10 minTemperatureAllowed <- -2 PI <- 3.142 bitMask <- 0b01110001 noon <- 12:00 justAfterNoon <- 12:00:01 //ISO 8601 i.e P[n]Y[n]M[n]DT[n]H[n]M[n]S maxRenewalDuration <- P3Y2M6DT12H15M6S twoYears <- P2Y twoMonths <- P2M minusTwoDays <- P-2D twoHours <- PT2H minusTwoHours <- PT-2H twoMinutes <- PT2M timeoutPeriod <- 250ms newMillennium <- 2000-01-01 ek9CreatedDateTime <- 2018-01-31T01:30:00-05:00 maxPayment <- 300000#USD defaultColour <- #AB6F2B twoMeters <- 2m matchSteves <- /[S|s]te(?:ven?|phen)/ //A comment //And another defines function areaOfCircle() -> diameter as Float <- result as Float: PI * (diameter/2)^2 circumferenceOfCircle() -> diameter as Float <- result as Float: PI * diameter