aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/lib
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-02-04 14:54:49 +0100
committerAnthony Ramine <[email protected]>2014-02-17 15:26:40 +0100
commit78ce8917d580e9eb1fead2e6b9a9ec2840347f4e (patch)
treebe2c1d1be4805c7e7b7d041140fb9b01ccc26281 /bootstrap/lib
parentb28f32d3b793fa7dbaa97f015f84b402bcca2161 (diff)
downloadotp-78ce8917d580e9eb1fead2e6b9a9ec2840347f4e.tar.gz
otp-78ce8917d580e9eb1fead2e6b9a9ec2840347f4e.tar.bz2
otp-78ce8917d580e9eb1fead2e6b9a9ec2840347f4e.zip
Simplify comprehension compilation in v3_core
Given that map comprehensions and generators and maybe && generators will be added to the language in the future, v3_core:lc_tq and v3_core:bc_tq could use a rewrite to avoid a complexity explosion, where there are as many related clauses as the product of the number of types of generators and the number of types of comprehensions. The new code abstract over all generators at the same time, there is only one clause for generators per type of comprehension, and all the filter code has been put in a common function filter_tq. It should also be noted that generator inputs are now compiled before the rest of the qualifiers, reversing names of nested comprehensions.
Diffstat (limited to 'bootstrap/lib')
0 files changed, 0 insertions, 0 deletions