Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
FlipperBucket
· 8y ago · 0 comments
I prefer a convention of semantically relevant variable names prefixed/suffixed by a letter indicating type.
Comments
[–]
Sharlin
8y ago
Didn't we already collectively decide that Hungarian notation is a bad idea? About 20 years ago?
[–]
FlipperBucket
OP
8y ago
No. It's alive and particularly pragmatic in dynamic languages. The type of sigil, @ or $ or I or Array(space) are all equal to the interpreter. The difference is how offended you might be that type annotations are semantically identical.
[–]
jetrink
8y ago
To be clear, the above examples are used when the function is designed to accept any such argument and only relevant info is the type.