C# allows it if you put an @ before the variable name. So
int @int = 0;
is valid in C#.
Does Haskell have anything similar to this or it doesn’t allow it altogether?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some words are keywords in some contexts but can be freely used as identifiers in others, such as
asandhiding.The C# trick is nothing but just slightly changing the name so that is it no longer a keyword. In Haskell, you could put a
_before or after the name, or append a'.