I don't work on any widely-used languages (I've made my own but not anything important) but I do think the designers of Zig and Rust have very good reasons for using semicolons – I read some reasons from the Rust devs themselves somewhere but I can't remember them other than it vaguely being about how Rust is expression-based and intended to be lightweight and how whitespace significance can create confusion around how to read and write certain things and bla bla bla...
but my personal opinion, what I generally I would imagine it's for other than readability, is because the code can look a lot cleaner when an expression returned from a block is just the expression, and not expression plus some token like return. It's especially nice in long closures or extremely short and simple blocks. I would rather consistently have to write expressions broadly like let a = { b + c }; rather than let a = { return b + c }. The semicolon has significance as a "result discarder" so expressions can be the default, so it's on the surface a lot more functional-friendly.
Also this is more specific but I hate the way WS languages generally handle quotes
That said, with how few expressions are return values, I do wonder why semicolons are the default rather than adding a special character to indicate return values.
you mean like return/break/etc.?
because Rust was designed to remind you of functional programming despite not being very functional, and because semicolons allow way better syntax rules in Rust and are generally pretty vital for good, readable lowish-level code. it also allows Rust programmers to use newlines/indents and stuff to pretty up their code a lot without littering it with random \ and |> and beginend and such everywhere, which, given how dense Rust code can be and how much it uses iterators and weird trait magic, is a big plus for readability
yea let them just name the other 200 countries' authorities which are responsible for transportation documents, i'm outraged that this isn't the case >:(
Well IIRC, for America, the funding money amount for Ukraine is usually just an estimate of the worth of already manufactured goods, mainly of weapons that we have stored that we weren't gonna use in the first place, and only a small portion of the dollar amount is stuff like clothes, food, etc. which would be seen as an actual cost to the US. We have sent Bradleys and M1 Abrams (and some European countries sent Leopard 2A4s? and Leclercs I think), but I'm pretty sure they weren't in use by the military and weren't planned to be upgraded for use any time soon (but I'm just guessing, I can't Google it rn, I may just be completely wrong on that).
It'd be so much better for everyone if we just took all of the funding going to Israel and redirected it to Ukraine. And then we nuke Israel or smthn idk
Depends on the language. I'm not gonna find shit to copy-paste for what I'm doing in Scala 3 or F#, but in Rust or C++ I'll frequently Google an issue I can't figure out and someone will have some fancy black magic hacker solution with super-iterators and turbofishies and weird type inference that I couldn't think of myself and just throw it in my code with some minor modifications :)
3 hours in an extreme environment is so vague. you'd die in like 20 minutes naked in Antarctica, or you could survive just fine forever with proper clothing. you may die in a day and a half in the desert if you had no water
what if i don't use google. you want me to say i'll duck duck go it? i'll bing it? i'm kagiing it right now? yahooing? oh yeah i'll AOL it? you are silly. a silly man. stop being silly
ordering on your phone is even better sometimes aside from the companies that shove their app in your face or make you log in. as a bonus, you don't have to use the same screen everyone else to ever walk into that store used
Attract more immigrants who have years of experience in specific high-qualification professions
You can get in there as someone who's worked as an engineer for 3 years or something, but it's unlikely for someone who's not an EU citizen to be able to get employment there to drive trams.
There are a lot of things illegal in Ukraine that are weird. One is dual citizenship; I guess it was specifically targetting Russia, to make it so you can't be a Ukrainian citizen if you're a Russian citizen, which makes sense. But it's been making matters complicated for Ukraine (especially recently with all the Ukrainian refugees in Europe who may have children with EU citizens or gain EU citizenship)
I have an Italian friend who has Ukrainian citizenship from their mother, right now they (and their mother) technically hold citizenship illegally according to Ukrainian law. They had been spending a lot of time trying to sort that stuff out with the Ukrainian embassy until the latest invasion started (the embassies became a bit occupied with more urgent matters)
I don't work on any widely-used languages (I've made my own but not anything important) but I do think the designers of Zig and Rust have very good reasons for using semicolons – I read some reasons from the Rust devs themselves somewhere but I can't remember them other than it vaguely being about how Rust is expression-based and intended to be lightweight and how whitespace significance can create confusion around how to read and write certain things and bla bla bla...
but my personal opinion, what I generally I would imagine it's for other than readability, is because the code can look a lot cleaner when an expression returned from a block is just the expression, and not expression plus some token like
return. It's especially nice in long closures or extremely short and simple blocks. I would rather consistently have to write expressions broadly likelet a = { b + c };rather thanlet a = { return b + c }. The semicolon has significance as a "result discarder" so expressions can be the default, so it's on the surface a lot more functional-friendly.Also this is more specific but I hate the way WS languages generally handle quotes