Fushuan [he/him]

Huh?

  • 0 Posts
  • 6 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle

  • It makes perfect sense if the Lang objective is to fail as little as possible. It picks the left side object, checks if the operand is a valid operand of the type. If it is, it casts the right variable into that type and perform the operand. If it isn’t, it reverses operand positions and tries again.

    The issue here is more the fact that + is used both as addition and as concatenation with different data types. Well, not an issue, just some people will complain.


  • You mean the “want to be zsh but with a specific config instead of having the liberty to do anything” shell? /s

    Jokes aside, regardless of your shell of choice, in companies there are tons of scripts that launch programs, processes and so on, that will generally be coded in bash. Scripts that process files, take the output, send emails… All in a single script. The shell of remote nodes won’t be zsh or fish, it will be bash, and a lot of them won’t even have vim installed, only vi. Like it or not, bash is heavily used in a looot of places.



  • I’m gonna repeat what I wrote in another comment. You are comparing the default interpreted way of running pythong to a compiled language. When you compile a python program into a wheel, you define the entry points of the code on it, and they point to functions like main() or whatever you define.

    You aren’t complaining that a index.js doesn’t automatically run the main function when run by node, or that bash doesn’t also have a default main function execution. Interpreted languages oriented to scripting won’t have the same rules as compiled languages.

    programming languages aren’t usually cursed, what’s cursed is the way some people decide to structure their programs. I’ve seen some stuff.