Post AkvEmX9bW2e4qO8m6C by ramin_hal9001@emacs.ch
 (DIR) More posts by ramin_hal9001@emacs.ch
 (DIR) Post #AkvEmFPxSV21ptea5g by tymwol@hachyderm.io
       2024-07-12T04:14:06Z
       
       2 likes, 3 repeats
       
       #c - what if everything was a pointer#lisp - what if everything was a linked list#haskell - what if everything was a pure function#forth - what if everything was a stack#lua - what if everything was a hash map#erlang - what if everything was immutable#prolog - what if everything was a pattern to match#java - what if everything was a class#rust - what if everything was a memory allocation problem#golang - what if everything != nil#javascript - what if everything was everything
       
 (DIR) Post #AkvEmX9bW2e4qO8m6C by ramin_hal9001@emacs.ch
       2024-07-12T17:40:02Z
       
       1 likes, 0 repeats
       
       > #c - what if everything was a pointer> #lisp - what if everything was a linked list> #haskell - what if everything was a pure function> #forth - what if everything was a stack> #lua - what if everything was a hash map> #erlang - what if everything was immutable> #prolog - what if everything was a pattern to match> #java - what if everything was a class> #rust - what if everything was a memory allocation problem> #golang - what if everything != nil> #javascript - what if everything was everything@tymwol  for #erlang I would say "what if everything was an async message-passing closure." Or you could say "what if everything was a coroutine" but that is not quite as accurate.You nailed it for every other language.Also, "what if everything was everything" describes #JavaScript, #Python , and #Ruby all equally well.And "what if everything was everything, but with types!" would describe TypeScript, Dart, Kotlin, Groovy, Haxe, Vala, and many other statically-typed OOP languages.#tcl - what if lisp used square brackets instead#bash - what if everything was a string#awk - what if everything was a stream of strings#perl - what if Bash was an esoteric language with regexps but not pipes#sql - what if everything was a table#xml  - what if everything was a tag#css - what if everything was a rectangle> #smalltalk - what if everything was an object> #zig - you're all wrong, we just need to fix C. @cian  very true. For #zig I would just say "what if we just fixed C". This might apply to #Golang but I would say #golang is more like "what if we tried to fix C but got it horribly wrong."
       
 (DIR) Post #Amb5liZpSXPQZ72fku by bonifartius@noauthority.social
       2024-10-02T13:32:35Z
       
       0 likes, 0 repeats
       
       @tymwol #tcl what if everything was a string