aboutsummaryrefslogtreecommitdiff
path: root/notes/implicit_declarations.txt
blob: 5e39897c0fd9fc2a01b65216538565342bf0fd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

Implicit declarations?
======================

Is it possible?

Syntax test:

    # For a single variable it works
    n = 0
    b = false
    s = ""
    l = [ 1 2 ]

    # Array access can be distinguished:
    arr i = 0

    # But how about multi-value declarations?
    # Maybe use [] syntax?
    [ i j ] = get_indices

Related:

- Perhaps turn `int` and `bool` into regular types?
  Pre-requisites:
    - Add identity-less types
    - Make them UpperCase (Int, Bool, etc.)
    - Add to builtin declarations