Open frc4533-lincoln opened 3 months ago
this is a great idea
@TodePond @frc4533-lincoln
what about //
syntax ?
I find myself really tired lately of writing one
or 1
it would be much more convenient if I would write just 2 //
or 9 //
instead
also as a shortcut for undefined
since 0 //
is 0 / 0
i.e undefined
also as a shortcut for
undefined
since0 //
is0 / 0
i.eundefined
@fulcanelly no because 0//
is 0 / 1
and therefor 0
but you could do a const const const 0 / 1 = undefined
to use 0//
as a shortcut to undefined
The
i++
/++i
andi--
/--i
syntax is pretty common for adding and subtracting 1, respectively. I'm disappointed with language designers. Has nobody thought ofi**
/**i
syntax?I can't tell you how many times I've wanted to multiply an integer by one. I'm sick and tired of
i = i * 1
.