Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So Common Lisp and Fortran are scripting languages? This test seems to be more like "Is the language heavily influenced by C or C++?"



Then add it's easy to create one-liners.


I will add this as a great qualifier, though i fear the day where someone says that APL is a scripting language ;)


I'm not familiar with APL, but after seeing the examples from Wikipedia [1], I think I know what you mean:

    # generates a typical set of Pick 6 lottery numbers
    x[⍋x←6?40]
    # finds all prime numbers from 1 to R
    (~R∊R∘.×R)/R←1↓⍳R
    # game of life
    life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
[1] http://en.wikipedia.org/wiki/APL_%28programming_language%29#...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: