Why doesn't every, and I mean it, language have this feature?
Posted
by dada
on Stack Overflow
See other posts from Stack Overflow
or by dada
Published on 2010-06-01T14:15:31Z
Indexed on
2010/06/01
14:23 UTC
Read the original article
Hit count: 200
Some time ago I had a look into Ruby and one of the things which stood out most for me was the way of using symbols.
While you to use defines or strings like in C++ or Python as an alternative, in Ruby you just write :mySymbol
and the interpreter takes over the enumeration for you.
- I can't see any disadvantage this feature has, so why is it missing in say, PHP and Python?
© Stack Overflow or respective owner