Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Symta is crazy and unreadable

Name: Anonymous 2022-11-18 22:34

Given a list L, take last 6 elements of that list, and remove the last of these 6 elements, returning the 5 elements in front. If the list has less than 6 elements or isn't even a list at all, return 42

In Symta that is solved with a simple expression:
L(42:@_ ~/5 _)
https://imgur.com/a/bBvr2n6


In your Pissthon/JustShit/LUserAss it is solved as...

Name: Anonymous 2022-11-19 9:24

Here is something funny you wont see in any language but REFAL and Symta:
https://imgur.com/a/FPDS4G5

Lisp dialect called MIT PLANNER also allowed for something similar, but the syntax was very inconvenient:
http://dspace.mit.edu/bitstream/handle/1721.1/5833/AIM-203.pdf?sequence=2&isAllowed=y
Scheme has `match` macro, but it is very limited and inconvenient compared to languages built around pattern matching.

Erlang too peeked a bit into the feed forward matchers, but they knew nothing about what they were doing and never went further than:
blah(true) ->
foo(),
bar();
blah(false) ->
baz().

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List