diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-04-11 12:29:49 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-12 00:24:51 +0300 |
commit | 0a0b473e840ccee3b3d1353902010bc84c2ca96f (patch) | |
tree | 3e49130f5200f6bca900c03915da1be4762b4782 /docs/markdown | |
parent | 00a3bb8d695a99be2c05d14985341f014a299e46 (diff) | |
download | meson-0a0b473e840ccee3b3d1353902010bc84c2ca96f.zip meson-0a0b473e840ccee3b3d1353902010bc84c2ca96f.tar.gz meson-0a0b473e840ccee3b3d1353902010bc84c2ca96f.tar.bz2 |
interpreter: use container explosion where it makes sense
we can avoid writing code like:
a = c[0]
b = c[1]
by using:
a, b = c
or
a = c[0]
b = c[1:]
by using:
a, *b = c
This saves just a bit of code and is a teeny bit faster. But mostly
for less code
Diffstat (limited to 'docs/markdown')
0 files changed, 0 insertions, 0 deletions