When should I use a Record vs a Class in Chapel
问题 When is it advantageous to use Record type vs a Class in Chapel? On IRC someone mentioned that Records distribute over locales better or something. 回答1: Records and classes are similar in Chapel in that they both support the creation of objects with fields and methods. That said, there are some major differences as well . Here's a quick review of some of those differences ( tl;dr: records are roughly like C structs while classes support class hierarchies, dynamic dispatch, etc.), followed by