3 ms·
I think it makes better sense to compare how APL looks in the wild versus Python/Ruby/Java whatever. Rosetta Code shows this pretty well. There are dozens of ex
by 7thaccount 7y ago
I think it makes better sense to compare how APL looks in the wild versus Python/Ruby/Java whatever. Rosetta Code shows this pretty well. There are dozens of examples where the APL program is one line and the Python/Perl/Ruby/C#/Whatever is ~1/3 page if I recall correctly.
So that might prove your point better now that I think about it lol. Python can be written like the user did above, but I've never written it that way or seen anybody at work that has. Most of the APL I've seen (except for the really old school kind) looks like oneliners.
- Athas 7y agoActually, my experience is that APL in the wild (as practiced by those who are just trying to do their job) is not very terse at all. It looks like an old-school procedural language. Since APL is an incredibly proprietary community, it can be a bit hard to find public examples of "industrial" APL style, but this looks similar to what I remember is written at places like SimCorp: https://github.com/Dyalog19/SA3/blob/953e591eace72bb1c147d1914734a78d7af50baf/DUI/Core/JSON.dyalog https://github.com/Dyalog19/SA3/blob/953e591eace72bb1c147d19...