4 ms·
You get a giant ass bracket after it. How is it not readable? “\{a}+\{b}=\{ a + b }\n” Do you also criticize this? “Price: $${price}”?
by kaba0 3y ago
You get a giant ass bracket after it. How is it not readable?
“\{a}+\{b}=\{ a + b }\n”
Do you also criticize this? “Price: $${price}”?
- shortrounddev2 3y agoTry, for example, generating a regular expression which features backslashes in it. You will get an unreadable mess and probably have to play with it for a while before java will even compile it
- kaba0 3y agoI very hope you are not generating regexes based on user data.. Also, I’m fairly sure $ is a special character in regexes..
- shortrounddev2 3y agoNot all variables are user data
- samus 3y agoA template processor implementing regexes should be used for that situation.