VK wrote:
> Obviously we are talking "sigils" in the abstract way as some repeating
> part of the identifier at the beginning: because JavaScript doesn't
> have type modifiers ("sigils") as such.
A sigil is not a modifier but a character that indicates the type of
the variable. It doesn't modify anything.
> Whatever sign (or combination of signs) it will it is always a part of the
> name (just like in Hungarian notation).
Sigils are certainly no part of the name. Say array @cars contains
('Audi', 'Opel', 'Toyota'), then $cars[0] could be 'Audi' and $#cars
the number of elements in the array (two).
The sigils here are @, $ and $# (the last one is actually a twigil).
But the variable's name is 'cars'; sigils are only *added* to a
variable. If you would say '@array_cars', then 'array_' is the
Hungarian part and '@' the sigil.
> In this aspect "$" is no different from "_" or say "prv".
Yes, the discussion is irrelevant because no such things as sigils
exist in javascript. What you did is actually use $ as a Hungarian
notation, not as a sigil
--
Bart