| ▲ | otabdeveloper4 5 hours ago | |
Yeah, C++ arrays are literally that. | ||
| ▲ | alpinisme 5 hours ago | parent | next [-] | |
Arrays are not dynamically sized though (handling runtime sizes) and don’t have efficient append/concat. The point of the dependent types is that you can have the type system track that concat creates an M+N length vector, sort preserves length (and adds a sorted guarantee that slice preserves), etc. Sure you can do a lot with templates, but that’s advanced templates not just “C++ arrays” in a throwaway “literally that” way. | ||
| ▲ | 5 hours ago | parent | prev [-] | |
| [deleted] | ||