You are viewing a single thread.
View all comments View context

Why do u prefer single quotes?

permalink
report
parent
reply
4 points

Not Shall330, but double quotes can imply variables in the string in some languages.

permalink
report
parent
reply

Which languages are these?

permalink
report
parent
reply
5 points

PHP for one. β€œ$x” will interpret the variable $x. β€˜$x’ does not.

permalink
report
parent
reply
3 points

I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I’m still a total noob in the world of software dev, so I wouldn’t be able to explain why it worked 🀣

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.2K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments