Crystal: Object.setter macro iterates over names twice

Created on 8 Aug 2016  路  2Comments  路  Source: crystal-lang/crystal

See the macro definition here. There seem to be two (nested) iterations over the names.

I guess there's no real purpose, or am I missing something? The getter/getter!/getter? macros don't do this.

newcomer bug stdlib

Most helpful comment

I... I just wanted to be sure the generated setters were truly generated 馃槉

Thanks for the catch! This was probably a copy-paste bug.

All 2 comments

I... I just wanted to be sure the generated setters were truly generated 馃槉

Thanks for the catch! This was probably a copy-paste bug.

Hehe, it happens :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lgphp picture lgphp  路  3Comments

Papierkorb picture Papierkorb  路  3Comments

oprypin picture oprypin  路  3Comments

oprypin picture oprypin  路  3Comments

ArthurZ picture ArthurZ  路  3Comments