GassaFM / interpr

Toy language to learn parallel computing
MIT License
5 stars 4 forks source link

Please add manual array filling #16

Open acforvs opened 4 years ago

acforvs commented 4 years ago

Something like mem := [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] would be sooo much easier than

kek := array (10)
kek[0] := 0
kek[1] := 1
kek[2] := 2
kek[3] := 3
kek[4] := 4
kek[5] := 5
kek[6] := 6
kek[7] := 7
kek[8] := 8
kek[9] := 9

It will make debugging process easier in case I want to use additional array (not just a passed as the func argument) or don't want to use keyboard / file input

GassaFM commented 4 years ago

See, I'm not really convinced. So far, I only saw one use of a nontrivial constant array in accepted solutions. And it could have easily been replaced by a few lines of pseudorandom number generation.