What is Nostr?
smlckz /
npub1wzx…le40
2024-07-12 09:29:26
in reply to nevent1q…3l8a

smlckz on Nostr: A good collection of clichés and stereotypes about these programming languages. ...

A good collection of clichés and stereotypes about these programming languages.

Following are some exceptions for which everything is not $thing in $lang.
#c - numbers: integers and floats (and enums).
#lisp - atoms: numbers, symbols etc.
#lua - similarly to lisp, numbers and booleans are not tables
#erlang - counters: https://www.erlang.org/doc/apps/erts/counters.html
#java - again, numbers and booleans. See the consequence of that in the signatures of these methods: https://docs.oracle.com/en%2Fjava%2Fjavase%2F22%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html
[For ''everything is an object'' done right, see Python, Ruby, Smalltalk etc.]

Aside:
For #forth : it could have been rephrased into: syntactically ''everything is either a number or a word''; and ''everything is done using stacks''.

I'll leave #prolog and #haskell for experts to find exceptions. No comments on #rust and #golang.

I'm reminded of how in #javascript : typeof null is "object"; back when I was writing JS (ES5 was widely available, ES6 was just rolling out), I was annoyed by automatic semicolon (non) insertion when I tried to write code without semicolon. JS was the first programming language I learnt.. condolences to my past self. Anyone remember ''prototypal inheritance''?
Author Public Key
npub1wzxkzgyj8ff0m42ypr34t0ql6wgz625jscgeudyzm9358tye6k2qfzle40