OMG!!!! I found a video on my most hated language, #tcl. If you do a project with that language, suddenly any criticizing about other languages becomes more like a funny thing to do and not an actual frustration. The fact that something like that is allowed to exist in production is insane. Hear me out:

- everything is a string
- {} is a code block but also your argument brackets so, since you do a lot of function passing a code can fastly look like this:

proc wrap {x} {
return {{wrapped} {$x}}
}

proc process {items} {
foreach item $items {
if {[string length [lindex $item 1]] > 3} {
puts [join [wrap [lindex $item 1]] { -> }]
}
}
}

set data {{name John} {age 30} {city {New York}}}

process $data

PS: I when a bit arch on it for the fun but I love this language as an experiment. I don't really like to write it tho. I know there is a community out there so it's probably a good language for some brains, not mine.

https://www.youtube.com/watch?v=4LwTJpURhTY

The weirdest programming language I ever learned

YouTube

@jacket Tcl is something of an acquired taste. Perhaps you need to have a twisted brain to really appreciate it (as I do)! 🤪

That's quite a good introductory video though. My one criticism would be that it may give the impression that all commands operate directly on strings, which would be very inefficient. This was the case in the very earliest versions of Tcl, but now strings are converted to/from more efficient representations behind the scenes as required. #tcltk 🪶

@jacket I guess, every programming language has its own taste, but this is personal opinion and has nothing to do with the language anits suitability as such. I hate to write in R, still it is a very useful and oopular language…

@jacket I wrote a lot of it for eggdrop bots. It’s an odd language, very flexible and I did have my head round the finer points of the grammar years ago, but I don’t miss it.

I also made a runtime for it it AWS Lambda :P

@guyinaskirt Then you probably know it more then me. I had to work with it for a mount to create a domotic driver thing. I wonder, how how can a language be secure if it's that permissive? Are people just using it in places where it doesn't matter?
@jacket I don’t have any real visibility of where it gets used but I agree — I think it’s used a lot for little bespoke tools (especially with Tk), and was easy to embed in other C projects (like eggdrop) where things like Lua would be used now