I think there has been an intense argument going around with null vs undefined in the JS community. But, in the typescript world, pretty much microsoft has recommended to avoid null and use undefined.
Can we have an option argument to generate undefined instead of null in typescript? Coming from swift world, it will be pretty useful to just deal with undefined than adding null to the mix.
Any thoughts?
I think there has been an intense argument going around with
nullvsundefinedin the JS community. But, in the typescript world, pretty much microsoft has recommended to avoidnulland useundefined.Can we have an option argument to generate
undefinedinstead ofnullin typescript? Coming fromswiftworld, it will be pretty useful to just deal withundefinedthan addingnullto the mix.Any thoughts?