3 ms·
Crystal started out as being more or less "compiled Ruby" (it's changed a bit since I first came across it). As such that means it uses "nil" just like Ruby doe
by careersuicide 10y ago
Crystal started out as being more or less "compiled Ruby" (it's changed a bit since I first came across it). As such that means it uses "nil" just like Ruby does. And Ruby, being heavily inspired by Smalltalk, took "nil" from Smalltalk. You'd probably have to ask Alan Kay to get to the bottom of this.
- jasonm23 10y agoRe: Smalltalk, Alan Kay borrowed nil from Lisp. Matz (ruby) also borrowed nil from Lisp. (He was also inspired by Smalltalk.)