jasper
11/16/2020, 10:41 PMcollection.filter(it => it.age > 18)
^-- Was told that calling the parameter 'it' is 'weird' and that I must not do this! 😄Matteo Mirk
11/17/2020, 9:11 AMit
being a convention in CoffeeScript too! So what would be the accepted convention in TS?jasper
11/17/2020, 10:25 AMjasper
11/17/2020, 10:26 AMtodd.ginsberg
11/17/2020, 12:57 PMit
everywhere now, even in Java. You could say "Sure, it
is just short for `item`" 🙂jasper
11/17/2020, 11:59 PMMarc Knaup
11/18/2020, 2:28 AMit
in TS because of Kotlin.
Using long descriptive variable names when they are not needed usually make code even harder to read rather than easier.