So are you asking to abandon sigils?
ehh no, sigil is the spirit of perl. no sigils no perl. what I mean is perl allows a same name but different type. and It's also a good feature but perl sacrificed much performance for it.
for support this feature, perl have to create a 6elments hash to store one name. see below:If we discard above feature, we could store a scalar on STASH directly. To me it's more understandable and maybe faster.like a package scalar variable: $FOO = '123'; actually store: *Foo{SCALAR => '123', HASH => '', ARRAY =>'', GLOB => '', PACKAGE => ' +', NAME =>''},
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
In reply to Re^2: Is glob feature really useful?
by xiaoyafeng
in thread Is typeglob feature really useful?
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |