3 ms·
Delphi kicked ass. Though, looking back, it didn't have hash tables at your fingertips like modern languages. I really can't imagine writing code without hash
by nrdvana 3y ago
Delphi kicked ass. Though, looking back, it didn't have hash tables at your fingertips like modern languages. I really can't imagine writing code without hashmaps anymore. Did that ever get added, and in a convenient way that doesn't require declaring a new object each time?
- nurettin 3y agoYou could use TDictionary. It has been around since 15 years.
- nrdvana 3y agoSadly by 2009 I'd moved on to a new job and didn't have much opportunity to use it. It didn't even have generics when I used it last. Looks like you have to allocate and free them manually though, which is less than I hoped for. I rather like the scripting languages where they are part of the syntax and seamlessly decode from JSON.
- fuzztester 3y agoNo true Delphiman would say that ;) https://en.m.wikipedia.org/wiki/No_true_Scotsman https://en.m.wikipedia.org/wiki/No_true_Scotsman
- fuzztester 3y agoGood question. nurettin replied, sibling comment. But it's not difficult to write your own for simple map types at least, like with strings as the keys. Generic maps would be harder.