apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Better variable declaration syntax #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Improve the syntax used to declare and initialize variables. Current front 
runner is:

entrypoint :
{
    integer foo = 42
    string bar = "test"
    real baz = 3.14159
    boolean quux = false
    complex i = 0, 1
    rational r = 1, 2

    stupidly_complex_struct = 1, 2, "foo", other_struct, etc
}

This is open to discussion.

Original issue reported on code.google.com by don.ap...@gmail.com on 15 Feb 2012 at 8:17

GoogleCodeExporter commented 9 years ago
hmm, actually, i like that. It enforces the "Thou shalt define only one 
variable per line" rule quite nicely

Original comment by ryoohki@gmail.com on 15 Feb 2012 at 8:18

GoogleCodeExporter commented 9 years ago
Starting work on this item.

Original comment by don.ap...@gmail.com on 25 Feb 2012 at 11:09

GoogleCodeExporter commented 9 years ago
Completed and committed.

Original comment by don.ap...@gmail.com on 27 Feb 2012 at 1:25