func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
0
}
Why does compiler does not throw error even when return keyword is not added while returning built-in data types ?
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
UITableViewCell()
}
Whereas in case of non built in types it throws error : Missing return in a function expected to return