5 ms·
All of them apart from generators look like they were taken straight from Ada.
by Agingcoder 3y ago
All of them apart from generators look like they were taken straight from Ada.
- WalterBright 3y agoD has _ in integers and that did come straight from Ada. I always liked Ada.
- brabel 3y agoAs I was reading I was thinking High C looks a lot like D! Though D still has no named parameters :D (I know it's in the works).
- WalterBright 3y agoDennis Korpel has nearly finished the named parameters. Yes, rest does look like D, such as nested functions! C still doesn't have nested functions. Once you get accustomed to them, they are really useful.
- brabel 3y agoLooking forward to named parameters, they help so much when functions take more than 2 or 3 parameters. By the way, I've been doing some D lately, just as a hobby, but it's been really nice! I had no idea before that D had so many features (I would say it even has too many - but still quite nice).
- WalterBright 3y agoD does in some ways have too many features. We'd like to prune out some of them. I agree that named parameters can be very helpful. For example, if there are three bool arguments, it makes calls like: test(true, false, false); into: test(format: true, output: false, skip: false); which makes it much more readable.
- pjmlp 3y agoPascal predates Ada, and already had ranges, CLU and Modula-2 also predate Ada and had generators.
- kragen 3y agoi know icon had generators, but i don't think it predated ada. did snobol4, icon's very different predecessor, have generators?
- pjmlp 3y agoQuite easy to find out, Ada released to the world in 1983, Icon released to the world in 1977.
- kragen 3y agoit's a bit more complex than that; ironman was already written in january 01977, for example https://dl.acm.org/doi/pdf/10.1145/234286.1057816 https://dl.acm.org/doi/pdf/10.1145/234286.1057816 §5.3.4 p.197 (25/60) i'm not sure if ironman listed generators as a requirement or not; i suspect they were added later this paper doesn't mention clu, modula-2, or icon as influences, for whatever that's worth
- pjmlp 3y agoSince we are doing archeology, https://dl.acm.org/doi/10.1145/154766.155376 https://dl.acm.org/doi/10.1145/154766.155376 We come to https://link.springer.com/book/10.1007/BFb0021415 https://link.springer.com/book/10.1007/BFb0021415 from the references, with an interesting table of contents. Similar approach can be done for other quoted references, if one is really keen in who did it first, and how much the Ada folks were aware of them. Naturally since not all of them are scanned, it is going to be a lot of work.
- eesmith 3y agoArchive.org has two scans of "Design and implementation of programming languages : proceedings of a DoD sponsored workshop, October, 1976, Ithaca". One is at https://archive.org/details/designimplementa0054unse_u4m7/mode/2up https://archive.org/details/designimplementa0054unse_u4m7/mo...