3 ms·
Groovy had the same feature well over a decade ago[1] (at least in 2005) and other languages possibly even before that. Swift was first announced in 2014. Swif
by realharo 8y ago
Groovy had the same feature well over a decade ago[1] (at least in 2005) and other languages possibly even before that. Swift was first announced in 2014.
Swift's is also tied to their `Optional<T>` wrapper type, any potential JS implementation would be more like Groovy's.
[1] https://web.archive.org/web/20050815012153/http://groovy.codehaus.org:80/Statements https://web.archive.org/web/20050815012153/http://groovy.cod... , bottom of the page