> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/s/scope/function_names_and_labels.md).

# Function names and labels

In Sidef, the same rule which is applied to variable scoping, is applied to functions and classes as well, which means that a function defined inside another function is not visible outside the current scope.

```ruby
# Nested functions
func outer {
    func inner {};   # not visible outside
}
 
# Nested classes
class Outer {
    class Inner {};  # not visisble outside
}
```
