I followed Swift Getting Started guide. I've made a typo in a simple statement and found a strange behavior:
$ swift
Welcome to Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1). Type :help for assistance.
1> 2 + 2
$R0: Int = 4
2> 2+2
$R1: Int = 4
3> 2 +2
error: repl.swift:3:2: error: consecutive statements on a line must be separated by ';'
2 +2
^
;
From where this limitation is coming? In other statically and dynamically typed languages like Scala and Python that works fine in REPL.