hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit a7c1cbe82c925107ea60acbe62d092c69fbe60d1
parent 803115eaf6d0b2621bcd27fa2a7a5e9ff25b6fd7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  7 Jun 2022 10:57:05 +0200

Remove some obsolete tuple unpacking TODOs

I don't actually see how tuple unpacking is useful here

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/harec/gen.ha | 2--
Mhare/parse/expr.ha | 1-
2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/cmd/harec/gen.ha b/cmd/harec/gen.ha @@ -196,8 +196,6 @@ fn gen_binding(ctx: *context, expr: *unit::expr) value = { value = temp, _type = item.object._type, }; - // TODO: tuple unpacking - // const lval, instr = allocval(value); const instr = qinstr_alloc(value._type); const lval = mklval(ctx, value); emit(&ctx.buf, lval, instr, value._type.sz); diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -1232,7 +1232,6 @@ fn unarithm(lexer: *lex::lexer) (ast::expr | error) = { case let c: ast::constant_expr => match (c) { case let n: ast::number_constant => - // TODO: tuple unpacking let sign = false; const val = match (n.value) { case let i: i64 =>