I think so. It'd be weird for a set/array/dict/string to have a .next() method
Swift calls the former "Sequence" instead of "Iterable," but it does have the distinction. The only real requirement of Sequence is the makeIterator method, which means it's very easy to make an iterator iterable: just add func makeIterator() -> Self { self }
JavaScript Generators are what TypeScript refers to as an IterableIterator -- that is, both Iterable and Iterator, in much the same way I just described.
I don't think it would be unreasonable for a language to have interface Iterator extends Iterable, but they should still be distinct.
@hyper-neutrino Yeah but the wiki- part has given its meaning to the -pedia part too through osmosis. Now that vyxalpedia exists, vyxal can be edited by any internet user as well.
I know some madlads who have a bot that automatically approves and merges PRs if they pass certain automated checks. That would create more the "wiki" idea
Also, aren't there some places where a pointer can be 0x00000000 and that's not nil, it's just, a valid pointer? Does Rust have any support for that? I know Swift doesn't
Zig has different T.*.allowZero and T.*.? types iirc, they both have the same memory layout as T.*, but then if you have both allowZeroand? then it doesn't
Still, I feel like there are better things to do than throw the entire Linux kernel out and start over. It would be better to replace it piece by piece, as bugs are found and new features are added
@RydwolfPrograms I made this when the IQ bell curve meme was popular. I had more examples towards the middle (e.g. C++ at the same point as ObjC, JS at the same point as Java) in one version
One concrete example: 2 libraries create a interface for a event handler. One method has a boolean parameter inverted though. You couldn't implement a method to implement both interfaces
Of course you can work around it but it would be much more convenient if you needed to specify the interface you are implementing to avoid bugs and confusion
@Bbrk24 I think it's generally agreed that C# is better than Java in many/most ways. It was made later and they had a chance to improve on some of its mistakes
The way you import namespaces instead of classes means fewer using/import statements, which is nice when autocomplete dies
The fact that generics actually exist means you can have classes with the same name but different number of generic arguments, which is useful in niche cases
Getters and setters, ref parameters, that SQL-like syntax (idk why people use it but apparently they like it), reification (just looked it up and it's weird but also very useful)