Optional typing
Operator Overload
Simple String Format
Option
Switch/Pattern Matching
let vegetable = "red pepper"
switch vegetable {
case "celery":
let vegetableComment = "Add some raisins and make ants on a log"
default:
let vegetableComment = "Everything tastes good in soup"
}
No comments:
Post a Comment