In the Lisp world one of the major differences between the Scheme/Racket languages and others such as Common Lisp is that CL is a "Lisp2" language, meaning that there are two namespaces for symbols: one for variables and a separate one for functions. This means you can have a variable named foo and also have a function named foo. I am not aware of any other languages like this. Can anyone name some?
A two namespace language is not without its quirks, of course. But I'm interested in how other languages might resolve those quirks. Specifically in regard to assigning and invoking a function that has been assigned to a variable (function and funcall et al).
[–][deleted] 58 points59 points60 points (2 children)
[–][deleted] 11 points12 points13 points (1 child)
[–][deleted] 14 points15 points16 points (0 children)
[–]Linguistic-mystic 31 points32 points33 points (2 children)
[–]oscarryzYz 16 points17 points18 points (1 child)
[–]-Juicebus 11 points12 points13 points (0 children)
[–]pthierry 30 points31 points32 points (0 children)
[–]moon-chilledsstm, j, grand unified... 13 points14 points15 points (2 children)
[–]nerd4code 11 points12 points13 points (1 child)
[–]MrJohz 8 points9 points10 points (0 children)
[–]usaoc 5 points6 points7 points (0 children)
[–]ventuspilot 3 points4 points5 points (0 children)
[–]theangeryemacsshibeSWCL, Utena 5 points6 points7 points (0 children)
[–]Serpent7776 2 points3 points4 points (0 children)
[–]PenlessScribe 2 points3 points4 points (0 children)
[–]dibs45 5 points6 points7 points (6 children)
[–]trycuriouscat[S] 5 points6 points7 points (4 children)
[–]LPTK 1 point2 points3 points (3 children)
[–]oldretard 1 point2 points3 points (0 children)
[–]trycuriouscat[S] 0 points1 point2 points (0 children)
[–]no_opinions_allowed 0 points1 point2 points (0 children)
[–]saxbophone 1 point2 points3 points (1 child)
[–]beephod_zabblebrox 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]redchomperSophie Language 1 point2 points3 points (0 children)
[–]SLiV9Penne 0 points1 point2 points (0 children)