In 1.12.2 and earlier, the following command worked, syntactically equivalent to, /setblock ~1 ~ ~ glass):
/setblock ~+1 ~ ~ glass
This command gives an error now:
Expected double at position 10: setblock ~<--[HERE]
While it was technically not to put in the + in, having it is nice if you want to be explicit.