4 ms·
I prefer a convention of semantically relevant variable names prefixed/suffixed by a letter indicating type.
by FlipperBucket 8y ago
I prefer a convention of semantically relevant variable names prefixed/suffixed by a letter indicating type.
- Sharlin 8y agoDidn't we already collectively decide that Hungarian notation is a bad idea? About 20 years ago?
- FlipperBucket 8y agoNo. 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 agoTo be clear, the above examples are used when the function is designed to accept any such argument and only relevant info is the type.