Currently, the 'dev' (or maybe even the previous) version of Zig doesn't allow tab whitespace character (not tab escape sequence) to be placed inside of a string and a command. That would make programming in Zig a little bit harder, as Zig allow tabs to be used as indentation but doesn't allow it to be placed inside of a command, because I (and I believe many other devs) use command as a way to temporary mark some piece of code as unused and so I can change it later or maybe just for debugging purpose without ever deleting it. Zig also doesn't allow tabs inside of a string, that would also make indentation for terminal output or any other work that needs string indentation a little bit harder as we need to use '\t' escape sequence or even worse we have to manually use spaces so we can see the final string in our code editor when we code it.
Description
Currently, the 'dev' (or maybe even the previous) version of Zig doesn't allow tab whitespace character (not tab escape sequence) to be placed inside of a string and a command. That would make programming in Zig a little bit harder, as Zig allow tabs to be used as indentation but doesn't allow it to be placed inside of a command, because I (and I believe many other devs) use command as a way to temporary mark some piece of code as unused and so I can change it later or maybe just for debugging purpose without ever deleting it. Zig also doesn't allow tabs inside of a string, that would also make indentation for terminal output or any other work that needs string indentation a little bit harder as we need to use '\t' escape sequence or even worse we have to manually use spaces so we can see the final string in our code editor when we code it.
Zig Version
0.14.0-dev.2245+4fc295dc0
Steps to Reproduce and Observed Output
Consider the following code:
When we compile it, the compiler will produce the following error message:
When we change the string indentation to either '\t' or spaces, we'll get the following error:
Expected Output
Zig should allow tabs inside of string and command, and the code above should work and compile fine without any compilation error.