General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Theo - t3․gg
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "The CSS \"function\" proposal is WILD (I think I like it?)" video.
If you've seen any of my rants on the modern internet, you'd already know why I think this is a stupid proposal. We should replace HTML/CSS/JS with a singular all-encompassing language. No more three separate filetypes that integrate in weird ways. We should use a single language designed for the web specifically. Something that makes it easier to define properties and operate on them. This proposal which would give us magic globals is really a bad idea. Something should only be visible between two functions if they pass a reference or it really is a proper global. The one thing I like about the proposal is no recursion, and if you've seen my rants on that you'd already know why. Although, in this case, to prevent recursion they'd have to introduce some sort of stack depth counter and disallow calling a higher function. Also, the result setting thing isn't equivalent with return, it's something that quite a few languages used to do which basically gave you a temporary variable that you could set and the end of the function equated to `return result` without you having to explicitly return it. Pascal and Object Pascal both had this functionality, as well as a few other languages. BASIC variants would often do the same thing by allowing you to set the function name to a value.
1