smit01
02/09/2022, 6:31 AMephemient
02/09/2022, 6:40 AMephemient
02/09/2022, 6:40 AMephemient
02/09/2022, 6:41 AMwith(A(9)) outer@{
with(A(8)) inner@{
this@outer // A(9)
this@inner // A(8)
Joffrey
02/09/2022, 1:50 PMthis
or return
, it is usually a smell that something could be extracted into a function.
I'm usually (personally) a bit extreme about extraction into functions, but I would argue that if you reach a point where even the compiler needs help disambiguating names, it's probably a mess to read for humans. So this is definitely a line that I think should not be crossed (unless a particular use case calls for it in a very short function, there are always exceptions).smit01
02/09/2022, 5:37 PM