3 ms·
AppleScript has an it keyword[0] that refers to the current application receiving commands. It's also made to resemble natural language in many other ways. From
by bjterry 10y ago
AppleScript has an it keyword[0] that refers to the current application receiving commands. It's also made to resemble natural language in many other ways. From experience, this did not improve it's usability. It is often referred to as a read-only programming language because of that.
Wolfram includes the % keyword for the last result generated, IPython has something similar within their notebooks, R has the .Last.value keyword, Matlab has ans, and many other languages often used from a REPL probably have similar constructs.
0: https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_fundamentals.html#//apple_ref/doc/uid/TP40000983-CH218-SW4 https://developer.apple.com/library/mac/documentation/AppleS...