- ShaunaTheDead ( @ShaunaTheDead@fedia.io ) 43•4 days ago
The teacher’s meaning is clear, which is the purpose of language. Mickey’s just being a grammar nazi.
- lowleveldata ( @lowleveldata@programming.dev ) English25•5 days ago
Actually we don’t know whether 2+3 equals to 3+2 without seeing the definition of the + operator
Fun fact: C doesn’t even guarantee
a + b == a + b
- lowleveldata ( @lowleveldata@programming.dev ) English8•5 days ago
*If a and b are
float
Or signed integers because overflow is undefined. It could do the left-hand computation in two’s complement and the right hand in sign-magnitude, leading to different results. Or, as it’s undefined, it could brew you some coffee and serve it with an aspirin.
- zea ( @zea_64@lemmy.blahaj.zone ) English2•4 days ago
C doesn’t even guarantee a == a
- hsdkfr734r ( @hsdkfr734r@feddit.nl ) English9•5 days ago
He could ask for clarification and discuss word definitions if the situation indicates a misunderstanding.
- Ben Matthews ( @benjhm@sopuli.xyz ) English9•5 days ago
As a small kid I learned i = i +1, before any maths teacher told me it couldn’t.
- gentooer ( @gentooer@programming.dev ) English10•4 days ago
As a physicist, this is correct if I is sufficiently large
That’s like asking a fusion researcher whether the reactor needs to reach 100 million Celsius or Kelvin, isn’t it.
- abcd ( @abcd@feddit.de ) English2•4 days ago
As a software developer this is a 100%* correct operation.
*From a logical perspective in C-like pseudocode. In reality you may have to add a „;“, a line break or other line delimiters if someone from Stackoverflow reads this
- Dippy ( @Dippy@beehaw.org ) English5•4 days ago
It also equals 25÷5, 1+4, 36-31
- sk ( @sk@forums.utsukta.org ) 2•5 days ago
lol